From 06c05568e8ebe84ab1abd92b11d1e3d8682bfc72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sun, 16 Mar 2025 00:12:04 +0100 Subject: [PATCH] update postgres --- deploy/postgres/postgres-app.yaml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) 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