diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index c3c51b4..bc650de 100755 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -188,7 +188,7 @@ Cannot return list => return string comma separated */}} {{- define "openldap.customSchemaFiles" -}} {{- $schemas := "" -}} - {{- $schemas := ((join "," (.Values.customSchemaFiles | keys)) | replace ".ldif" "") -}} + {{- $schemas := ((join "," (.Values.customSchemaFiles | keys | sortAlpha)) | replace ".ldif" "") -}} {{- print $schemas -}} {{- end -}} diff --git a/values.yaml b/values.yaml index e6554a9..5f6a894 100644 --- a/values.yaml +++ b/values.yaml @@ -121,6 +121,8 @@ pdb: # group: readers # Custom openldap schema files used to be used in addition to default schemas +# Note that the supplied files are sorted by name and inserted into 'LDAP_EXTRA_SCHEMAS' env var +# after chart default schemas, allowing you to control the loading sequence. # customSchemaFiles: # custom.ldif: |- # # custom schema