mirror of
https://github.com/Telecominfraproject/wlan-cloud-helm.git
synced 2025-10-29 17:52:40 +00:00
28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
{{- if (include "postgresql.createSecret" .) }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ template "common.fullname" . }}
|
|
namespace: {{ include "common.namespace" . }}
|
|
labels:
|
|
app: {{ template "common.name" . }}
|
|
chart: {{ template "common.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 -}}
|