charts/openldap/templates/common.yaml: set LDAP_SKIP_DEFAULT_TREE to yes, if .Values.persistence.ldifimport.enabled is enabled; set it to no otherwise

This commit is contained in:
Johannes Kastl
2023-08-02 18:37:42 +02:00
parent 639f303285
commit 872e13d336

View File

@@ -5,8 +5,10 @@
{{- define "openldap.hardcodedValues" -}}
env:
{{ if .Values.persistence.ldifimport.enabled }}
LDAP_SKIP_DEFAULT_TREE: 'no'
LDAP_SKIP_DEFAULT_TREE: 'yes'
LDAP_CUSTOM_LDIF_DIR: '/ldif_import/'
{{ else }}
LDAP_SKIP_DEFAULT_TREE: 'no'
{{ end }}
{{ if .Values.persistence.certificate.enabled }}
LDAP_ENABLE_TLS: 'yes'