Skip to content

Commit bd29d7f

Browse files
authored
Merge pull request #161 from Arano-kai/feature/sorted_custom_ldifs
feat(helpers): sort schema apply sequence
2 parents 506808b + 74fb928 commit bd29d7f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

templates/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Cannot return list => return string comma separated
188188
*/}}
189189
{{- define "openldap.customSchemaFiles" -}}
190190
{{- $schemas := "" -}}
191-
{{- $schemas := ((join "," (.Values.customSchemaFiles | keys)) | replace ".ldif" "") -}}
191+
{{- $schemas := ((join "," (.Values.customSchemaFiles | keys | sortAlpha)) | replace ".ldif" "") -}}
192192
{{- print $schemas -}}
193193
{{- end -}}
194194

values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ pdb:
121121
# group: readers
122122

123123
# Custom openldap schema files used to be used in addition to default schemas
124+
# Note that the supplied files are sorted by name and inserted into 'LDAP_EXTRA_SCHEMAS' env var
125+
# after chart default schemas, allowing you to control the loading sequence.
124126
# customSchemaFiles:
125127
# custom.ldif: |-
126128
# # custom schema

0 commit comments

Comments
 (0)