This repository has been archived on 2024-02-11. You can view files and clone it, but cannot push or open issues or pull requests.
valinor/kubernetes/apps/security/external-secrets/cluster-secrets/pgo-s3-creds.yaml

42 lines
980 B
YAML
Raw Normal View History

2023-10-05 16:02:50 -05:00
---
2023-11-27 22:31:02 -06:00
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/clusterexternalsecret_v1beta1.json
2023-10-05 16:02:50 -05:00
apiVersion: external-secrets.io/v1beta1
kind: ClusterExternalSecret
metadata:
name: pgo-s3-creds
spec:
externalSecretName: pgo-s3-creds
namespaceSelector:
matchLabels:
pgo-enabled-hsn.dev: "true"
refreshTime: "1m"
externalSecretSpec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: pgo-s3-creds
creationPolicy: Owner
template:
engineVersion: v2
data:
s3.conf: |
[global]
2024-01-03 22:02:23 -06:00
repo1-s3-key={{ .pgo_crunchy_postgres_access_key }}
repo1-s3-key-secret={{ .pgo_crunchy_postgres_secret_key }}
2023-10-05 16:02:50 -05:00
dataFrom:
- extract:
2024-01-03 22:02:23 -06:00
key: pgo-s3-creds
2023-10-05 16:02:50 -05:00
rewrite:
- regexp:
source: "[-]"
target: "_"
- regexp:
source: "(.*)"
2024-01-03 22:02:23 -06:00
target: "pgo_$1"