Files
deprecated-helm-charts/stable/postgresql/templates/secrets.yaml
T
Stephen Moloney a95f551b7b [stable/postgresql] Remove extra lines in secrets.yaml (#9917)
What does this commit/MR/PR do?

- Remove extra lines in secrets.yaml

Why is this commit/MR/PR needed?

- There should be one key/pair per line

Signed-off-by: Stephen Moloney <stephen@stephenmoloney.com>
2018-12-12 02:35:28 -08:00

26 lines
823 B
YAML

{{- if not .Values.existingSecret }}
apiVersion: v1
kind: Secret
metadata:
name: {{ template "postgresql.fullname" . }}
labels:
app: {{ template "postgresql.name" . }}
chart: {{ template "postgresql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
type: Opaque
data:
{{- if .Values.postgresqlPassword }}
postgresql-password: {{ .Values.postgresqlPassword | b64enc | quote }}
{{- else }}
postgresql-password: {{ randAlphaNum 10 | b64enc | quote }}
{{- end }}
{{- if .Values.replication.enabled }}
{{- if .Values.replication.password }}
postgresql-replication-password: {{ .Values.replication.password | b64enc | quote }}
{{- else }}
postgresql-replication-password: {{ randAlphaNum 10 | b64enc | quote }}
{{- end }}
{{- end }}
{{- end -}}