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
maxParallel: 8
destinationPath: s3://valinor-cnpg/
endpointURL:
valueFrom:
secretKeyRef:
name: cnpg-secret
key: CLOUDFLARE_R2_ENDPOINT
endpointURL: https://${SECRET_CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com
serverName: postgres-v3
s3Credentials:
accessKeyId:
@ -49,11 +45,7 @@ spec:
externalClusters:
- name: clusterBackup
barmanObjectStore:
destinationPath:
valueFrom:
secretKeyRef:
name: cnpg-secret
key: CLOUDFLARE_R2_ENDPOINT
destinationPath: https://${SECRET_CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com
s3Credentials:
accessKeyId:
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
resources:
- ./cluster.yaml
- ./externalsecret.yaml
- ./scheduledbackup.yaml
- ./prometheusrule.yaml
# - ./service.yaml