1 {{- if not .Values.existingSecret }}
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 .Values.postgresqlPassword }}
14 postgresql-password: {{ .Values.postgresqlPassword | b64enc | quote }}
16 postgresql-password: {{ randAlphaNum 10 | b64enc | quote }}
18 {{- if .Values.replication.enabled }}
19 {{- if .Values.replication.password }}
20 postgresql-replication-password: {{ .Values.replication.password | b64enc | quote }}
22 postgresql-replication-password: {{ randAlphaNum 10 | b64enc | quote }}