Skip to content

Commit

Permalink
Merge pull request #161 from Arano-kai/feature/sorted_custom_ldifs
Browse files Browse the repository at this point in the history
feat(helpers): sort schema apply sequence
  • Loading branch information
jp-gouin authored May 21, 2024
2 parents 506808b + 74fb928 commit bd29d7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}

Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd29d7f

Please sign in to comment.