From a8dd9ecc1993748d72a7639b7bb91b488608eab4 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Sun, 26 Sep 2021 10:53:36 +0200 Subject: [PATCH] (fix) use the correct initcontainer for postgresql on scale --- charts/stable/postgresql/SCALE/ix_values.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/charts/stable/postgresql/SCALE/ix_values.yaml b/charts/stable/postgresql/SCALE/ix_values.yaml index 79cc2b90a2e..de780f79864 100644 --- a/charts/stable/postgresql/SCALE/ix_values.yaml +++ b/charts/stable/postgresql/SCALE/ix_values.yaml @@ -23,12 +23,8 @@ initContainers: - -cx - | echo 'trying to migrate old db to new location...' - chown -R {{ .Values.podSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }} /bitnami/postgresql/data /bitnami/postgresql/old - chmod 775 /bitnami/postgresql/data/ bitnami/postgresql/data /bitnami/postgresql/old mkdir -p /bitnami/postgresql/data - mkdir -p /bitnami/postgresql/conf mv -f /bitnami/postgresql/old/* /bitnami/postgresql/data/ || true - mv -f /bitnami/postgresql/data/pg_hba.conf /bitnami/postgresql/conf/pg_hba.conf || true chown -R {{ .Values.podSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }} /bitnami/postgresql/data chmod 775 /bitnami/postgresql/data imagePullPolicy: IfNotPresent @@ -38,6 +34,7 @@ initContainers: - name: data mountPath: /bitnami/postgresql + envValueFrom: POSTGRES_PASSWORD: secretKeyRef: