Files
deprecated-helm-charts/stable/postgresql/templates/secrets.yaml
T
Javier J. Salmerón-García 7ca2c9a187 [stable/postgresql] Allow connection details to be set as global (#11360)
* [stable/postgresql] Allow connection details to be set as global

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>

* Add global by default

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
2019-03-20 09:10:59 -07:00

18 lines
584 B
YAML

{{- if (include "postgresql.createSecret" .) }}
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:
postgresql-password: {{ include "postgresql.password" . | b64enc | quote }}
{{- if .Values.replication.enabled }}
postgresql-replication-password: {{ include "postgresql.replication.password" . | b64enc | quote }}
{{- end }}
{{- end -}}