mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 06:58:50 +08:00
* [bitnami/postgresql] Add option to add annotations to all generated resources * Add to readme * [bitnami/postgresql] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
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 }}
|
|
{{- 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 -}}
|