Fixed sops issues.

This commit is contained in:
Joseph Hanson 2023-08-15 16:32:33 +00:00
parent b66fef4040
commit 9e96dd9916
3 changed files with 2 additions and 33 deletions

View file

@ -33,11 +33,7 @@ spec:
compression: bzip2 compression: bzip2
maxParallel: 8 maxParallel: 8
destinationPath: s3://valinor-cnpg/ destinationPath: s3://valinor-cnpg/
endpointURL: endpointURL: https://${SECRET_CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com
valueFrom:
secretKeyRef:
name: cnpg-secret
key: CLOUDFLARE_R2_ENDPOINT
serverName: postgres-v3 serverName: postgres-v3
s3Credentials: s3Credentials:
accessKeyId: accessKeyId:
@ -49,11 +45,7 @@ spec:
externalClusters: externalClusters:
- name: clusterBackup - name: clusterBackup
barmanObjectStore: barmanObjectStore:
destinationPath: destinationPath: https://${SECRET_CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com
valueFrom:
secretKeyRef:
name: cnpg-secret
key: CLOUDFLARE_R2_ENDPOINT
s3Credentials: s3Credentials:
accessKeyId: accessKeyId:
name: cloudnative-pg-secret name: cloudnative-pg-secret

View file

@ -1,22 +0,0 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: cnpg
namespace: database
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: cnpg-secret
creationPolicy: Owner
template:
engineVersion: v2
data:
CLOUDFLARE_R2_ENDPOINT: "https://{{ .cloudflare_account_id }}.r2.cloudflarestorage.com"
data:
- secretKey: cloudflare_account_id
remoteRef:
key: cloudflare
property: account_id

View file

@ -4,7 +4,6 @@ kind: Kustomization
namespace: fediverse namespace: fediverse
resources: resources:
- ./cluster.yaml - ./cluster.yaml
- ./externalsecret.yaml
- ./scheduledbackup.yaml - ./scheduledbackup.yaml
- ./prometheusrule.yaml - ./prometheusrule.yaml
# - ./service.yaml # - ./service.yaml