22 lines
889 B
YAML
22 lines
889 B
YAML
{{- if (include "postgresql.createSecret" .) }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ template "postgresql.fullname" . }}
|
|
labels:
|
|
{{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
type: Opaque
|
|
data:
|
|
postgresql-postgres-password: {{ include "postgresql.postgres.password" . | b64enc | quote }}
|
|
postgresql-password: {{ include "postgresql.password" . | b64enc | quote }}
|
|
{{- if .Values.replication.enabled }}
|
|
postgresql-replication-password: {{ include "postgresql.replication.password" . | b64enc | quote }}
|
|
{{- end }}
|
|
{{- if (and .Values.ldap.enabled .Values.ldap.bind_password)}}
|
|
postgresql-ldap-password: {{ .Values.ldap.bind_password | b64enc | quote }}
|
|
{{- end }}
|
|
{{- end -}}
|