Skip to content

Commit

Permalink
fix comments in template
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Feb 17, 2023
1 parent 2eeeca3 commit f55ec24
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -176,29 +176,25 @@ Cannot return list => return string comma separated
{{- print $schemas -}}
{{- end -}}


{{/*
Return the list of all schema files to use
Cannot return list => return string comma separated
*/}}
{{- define "openldap.schemaFiles" -}}
# begin of shared part with "openldap.builtinSchemaFiles"
{{- /* begin of shared part with "openldap.builtinSchemaFiles" */ -}}
{{- $schemas := "" -}}
{{- if .Values.replication.enabled -}}
{{- $schemas = "syncprov,serverid,csyncprov,rep,bsyncprov,brep,acls" -}}
{{- else -}}
{{- $schemas = "acls" -}}
{{- end -}}
# end of shared part with "openldap.builtinSchemaFiles"

# begin of shared part with "openldap.customSchemaFiles"
{{- /* end of shared part with "openldap.builtinSchemaFiles" */ -}}
{{- /* begin of shared part with "openldap.customSchemaFiles" */ -}}
{{- $custom_schemas := ((join "," (.Values.customSchemaFiles | keys)) | replace ".ldif" "") -}}
# end of shared part with "openldap.customSchemaFiles"

{{- /* end of shared part with "openldap.customSchemaFiles" */ -}}
{{- if gt (len $custom_schemas) 0 -}}
{{- $schemas = print $schemas "," $custom_schemas -}}
{{- end -}}

{{- print $schemas -}}
{{- end -}}

Expand Down

0 comments on commit f55ec24

Please sign in to comment.