[bitnami/postgresql] Fix postgres password if customUser is empty (#17473)

Signed-off-by: Gonzalo Gomez Gracia <gonzalog@vmware.com>
This commit is contained in:
Gonzalo Gómez Gracia
2023-07-04 19:33:46 +02:00
committed by GitHub
parent f19249b642
commit d6234d8b89
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -28,4 +28,4 @@ maintainers:
name: postgresql
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql
version: 12.6.1
version: 12.6.2
@@ -222,8 +222,11 @@ spec:
{{- if .Values.auth.usePasswordFiles }}
- name: POSTGRES_POSTGRES_PASSWORD_FILE
value: {{ printf "/opt/bitnami/postgresql/secrets/%s" (include "postgresql.adminPasswordKey" .) }}
{{- else if .Values.auth.postgresPassword }}
- name: POSTGRES_PASSWORD
value: {{ .Values.auth.postgresPassword }}
{{- else }}
- name: POSTGRES_POSTGRES_PASSWORD
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "postgresql.secretName" . }}