[COMMON] allow multiline config for aaf add config 50/114250/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 26 Oct 2020 16:49:05 +0000 (17:49 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 26 Oct 2020 16:49:05 +0000 (17:49 +0100)
Use trim function in order to remove the 4 first spaces that breaks
configuration when aaf add config is a multiline (a.k.a uses `|`) YAML
entry.

Issue-ID: OOM-2611
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: Ib53a8a87f896a66ba613d542cfca833804ef1d7a

kubernetes/common/certInitializer/templates/configmap.yaml

index 7abbf9c..7eae899 100644 (file)
@@ -21,5 +21,5 @@ kind: ConfigMap
 metadata: {{- include "common.resourceMetadata" (dict "suffix" $suffix "dot" . )| nindent 2 }}
 data:
   aaf-add-config.sh: |
-    {{ tpl .Values.aaf_add_config . | indent 4 }}
+    {{ tpl .Values.aaf_add_config . | indent 4 | trim }}
 {{- end }}