mirror of
https://github.com/bitnami/charts.git
synced 2026-03-14 06:47:28 +08:00
[postgresql-ha] backwards compat postgres-password (#13809)
Signed-off-by: Sjouke de Vries <info@sdvservices.nl> Signed-off-by: Sjouke de Vries <info@sdvservices.nl>
This commit is contained in:
@@ -191,7 +191,15 @@ spec:
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "postgresql-ha.postgresqlSecretName" . }}
|
||||
{{- if (include "postgresql-ha.postgresqlCreateSecret" .) }}
|
||||
key: password
|
||||
{{- else }}
|
||||
{{- if ( index ( lookup "v1" "Secret" (include "common.names.namespace" .) (include "postgresql-ha.postgresqlSecretName" .) ) ".data.postgres-password" ) }}
|
||||
key: postgres-password
|
||||
{{- else }}
|
||||
key: password
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if not (empty (include "postgresql-ha.postgresqlDatabase" .)) }}
|
||||
- name: POSTGRES_DB
|
||||
|
||||
Reference in New Issue
Block a user