mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-08 21:01:43 +10: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:
@@ -29,4 +29,4 @@ name: postgresql-ha
|
||||
sources:
|
||||
- https://github.com/bitnami/containers/tree/main/bitnami/postgresql
|
||||
- https://www.postgresql.org/
|
||||
version: 10.0.6
|
||||
version: 10.0.7
|
||||
|
||||
@@ -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