38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
|
---
|
||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/external-secrets.io/externalsecret_v1beta1.json
|
||
|
apiVersion: external-secrets.io/v1beta1
|
||
|
kind: ExternalSecret
|
||
|
metadata:
|
||
|
name: &name crunchy-postgres
|
||
|
spec:
|
||
|
secretStoreRef:
|
||
|
kind: ClusterSecretStore
|
||
|
name: onepassword-connect
|
||
|
target:
|
||
|
name: crunchy-postgres-secret
|
||
|
template:
|
||
|
engineVersion: v2
|
||
|
data:
|
||
|
s3.conf: |
|
||
|
[global]
|
||
|
repo1-s3-key={{ .minio_crunchy_postgres_access_key }}
|
||
|
repo1-s3-key-secret={{ .minio_crunchy_postgres_secret_key }}
|
||
|
encryption.conf: |
|
||
|
[global]
|
||
|
repo1-cipher-pass={{ .crunchy_postgres_backup_encryption_cipher }}
|
||
|
dataFrom:
|
||
|
- extract:
|
||
|
key: crunchy-postgres
|
||
|
rewrite:
|
||
|
- regexp:
|
||
|
source: "(.*)"
|
||
|
target: "crunchy_postgres_$1"
|
||
|
- extract:
|
||
|
key: minio
|
||
|
rewrite:
|
||
|
- regexp:
|
||
|
source: "[-]"
|
||
|
target: "_"
|
||
|
- regexp:
|
||
|
source: "(.*)"
|
||
|
target: "minio_$1"
|