From f55ec24d34de71c2f2d9fbbd9a3cacaab1cc9c57 Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Fri, 17 Feb 2023 16:07:17 +0100 Subject: [PATCH] fix comments in template --- templates/_helpers.tpl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index a81321e..20f8ab8 100755 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -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 -}}