Postgresql .Values.global.postgresql.auth.username should overwrite .Values.auth.username, (#8966)

This commit is contained in:
Marcel Märtens
2022-02-11 08:20:08 +01:00
committed by GitHub
parent 91fbd86761
commit c75fef792f
2 changed files with 2 additions and 2 deletions

View File

@@ -26,4 +26,4 @@ name: postgresql
sources:
- https://github.com/bitnami/bitnami-docker-postgresql
- https://www.postgresql.org/
version: 11.0.2
version: 11.0.3

View File

@@ -16,7 +16,7 @@ data:
{{- if .Values.auth.enablePostgresUser }}
postgres-password: {{ include "common.secrets.passwords.manage" (dict "secret" (include "common.names.fullname" .) "key" "postgres-password" "providedValues" (list "global.postgresql.auth.postgresPassword" "auth.postgresPassword") "context" $) }}
{{- end }}
{{- if not (empty .Values.auth.username) }}
{{- if not (empty (include "postgresql.username" .)) }}
password: {{ include "common.secrets.passwords.manage" (dict "secret" (include "common.names.fullname" .) "key" "password" "providedValues" (list "global.postgresql.auth.password" "auth.password") "context" $) }}
{{- end }}
{{- if eq .Values.architecture "replication" }}