diff --git a/deploy/postgres/postgres-app.yaml b/deploy/postgres/postgres-app.yaml index b2852e5..1a8f283 100644 --- a/deploy/postgres/postgres-app.yaml +++ b/deploy/postgres/postgres-app.yaml @@ -1,7 +1,7 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: - name: postgres + name: postgresql namespace: argocd spec: project: default @@ -10,8 +10,8 @@ spec: chart: "postgresql" targetRevision: "16.0.0" helm: - releaseName: "postgresql" # Ensures this Helm release is managed inside "postgres" - values: | + releaseName: "postgresql" + valueObject: global: storageClass: longhorn primary: @@ -24,16 +24,11 @@ spec: enabled: true storageClass: longhorn size: 20Gi + auth: + existingSecret: "postgresql" # Use the existing secret + username: "postgres" # Ensure username matches the expected value + secretKeys: + adminPasswordKey: "postgres-password" # Match your secret key destination: server: "https://kubernetes.default.svc" namespace: postgres - syncPolicy: - automated: - selfHeal: true - ignoreDifferences: - - group: "" - kind: Secret - name: postgresql - namespace: postgres - jsonPointers: - - /data