From 872e13d33655b050cc6eaaff5bd3756e628bc35f Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Wed, 2 Aug 2023 18:37:42 +0200 Subject: [PATCH] charts/openldap/templates/common.yaml: set LDAP_SKIP_DEFAULT_TREE to yes, if .Values.persistence.ldifimport.enabled is enabled; set it to no otherwise --- charts/openldap/templates/common.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/openldap/templates/common.yaml b/charts/openldap/templates/common.yaml index 0838db9..0551051 100644 --- a/charts/openldap/templates/common.yaml +++ b/charts/openldap/templates/common.yaml @@ -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'