my-apps/charts/semaphore/templates/secret-ldap.yaml
2026-04-13 13:51:19 +03:00

24 lines
624 B
YAML

{{- if and (not .Values.ldap.existingSecret) (.Values.ldap.enable) }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "semaphoreui.fullname" . }}-ldap
namespace: {{ .Release.Namespace }}
labels:
{{- include "semaphoreui.labels" . | nindent 4 }}
{{- if .Values.labels }}
{{- toYaml .Values.labels | nindent 4 }}
{{- end }}
{{- if .Values.annotations }}
annotations:
{{- toYaml .Values.annotations | nindent 4 }}
{{- end }}
type: Opaque
data:
{{ .Values.ldap.binddnKey }}: {{ .Values.ldap.binddn | b64enc }}
{{ .Values.ldap.passwordKey }}: {{ .Values.ldap.password | b64enc }}
{{- end }}