mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-24 04:26:40 +10:00
* [bitnami/postgresql] Add dependency on bitnami common chart * [bitnami/postgresql] Replace deprecated standard Helm labels * [bitnami/postgresql] Bump version to 9.0.0 Co-authored-by: Dennis Effing <dennis.effing@codecentric.de>
24 lines
998 B
YAML
24 lines
998 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 "postgresql.tplValue" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
type: Opaque
|
|
data:
|
|
{{- if and .Values.postgresqlPostgresPassword (not (eq .Values.postgresqlUsername "postgres")) }}
|
|
postgresql-postgres-password: {{ include "postgresql.postgres.password" . | b64enc | quote }}
|
|
{{- end }}
|
|
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 -}}
|