1 {{- if (include "postgresql.createSecret" .) }}
5 name: {{ template "postgresql.fullname" . }}
7 app: {{ template "postgresql.name" . }}
8 chart: {{ template "postgresql.chart" . }}
9 release: {{ .Release.Name | quote }}
10 heritage: {{ .Release.Service | quote }}
13 {{- if and .Values.postgresqlPostgresPassword (not (eq .Values.postgresqlUsername "postgres")) }}
14 postgresql-postgres-password: {{ include "postgresql.postgres.password" . | b64enc | quote }}
16 postgresql-password: {{ include "postgresql.password" . | b64enc | quote }}
17 {{- if .Values.replication.enabled }}
18 postgresql-replication-password: {{ include "postgresql.replication.password" . | b64enc | quote }}
20 {{- if (and .Values.ldap.enabled .Values.ldap.bind_password)}}
21 postgresql-ldap-password: {{ .Values.ldap.bind_password | b64enc | quote }}