{{- if .Values.secrets.ldapBindPassword }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ template "nginx-ldapauth-proxy.fullname" . }}
  labels:
    app: {{ template "nginx-ldapauth-proxy.name" . }}
    chart: {{ template "nginx-ldapauth-proxy.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
type: Opaque
data:
  ldapBindPassword: {{ .Values.secrets.ldapBindPassword | b64enc | quote }}
{{- end }}
