fix minior bug that creates invalid kong DANM dannotation
[it/dep.git] / ric-aux / helm / infrastructure / subcharts / kong / charts / postgresql / templates / secrets.yaml
1 {{- if (include "postgresql.createSecret" .) }}
2 apiVersion: v1
3 kind: Secret
4 metadata:
5   name: {{ template "postgresql.fullname" . }}
6   labels:
7     app: {{ template "postgresql.name" . }}
8     chart: {{ template "postgresql.chart" . }}
9     release: {{ .Release.Name | quote }}
10     heritage: {{ .Release.Service | quote }}
11 type: Opaque
12 data:
13   {{- if and .Values.postgresqlPostgresPassword (not (eq .Values.postgresqlUsername "postgres")) }}
14   postgresql-postgres-password: {{ include "postgresql.postgres.password" . | b64enc | quote }}
15   {{- end }}
16   postgresql-password: {{ include "postgresql.password" . | b64enc | quote }}
17   {{- if .Values.replication.enabled }}
18   postgresql-replication-password: {{ include "postgresql.replication.password" . | b64enc | quote }}
19   {{- end }}
20   {{- if (and .Values.ldap.enabled .Values.ldap.bind_password)}}
21   postgresql-ldap-password: {{ .Values.ldap.bind_password | b64enc | quote }}
22   {{- end }}
23 {{- end -}}