19 lines
594 B
YAML
19 lines
594 B
YAML
|
{{ if not .Values.existingSecret }}
|
||
|
apiVersion: v1
|
||
|
kind: Secret
|
||
|
metadata:
|
||
|
name: {{ template "openldap.fullname" . }}
|
||
|
labels:
|
||
|
app: {{ template "openldap.name" . }}
|
||
|
chart: {{ template "openldap.chart" . }}
|
||
|
release: {{ .Release.Name }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
{{- if .Values.extraLabels }}
|
||
|
{{ toYaml .Values.extraLabels | indent 4 }}
|
||
|
{{- end }}
|
||
|
type: Opaque
|
||
|
data:
|
||
|
LDAP_ADMIN_PASSWORD: {{ .Values.adminPassword | default (randAlphaNum 32) | b64enc | quote }}
|
||
|
LDAP_CONFIG_PASSWORD: {{ .Values.configPassword | default (randAlphaNum 32) | b64enc | quote }}
|
||
|
{{ end }}
|