From 911e094fda1d3c5a76f567ea7d82de1dcfcba7da Mon Sep 17 00:00:00 2001 From: Sylvain Desbureaux Date: Mon, 26 Oct 2020 17:49:05 +0100 Subject: [COMMON] allow multiline config for aaf add config 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 Change-Id: Ib53a8a87f896a66ba613d542cfca833804ef1d7a --- kubernetes/common/certInitializer/templates/configmap.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kubernetes/common/certInitializer') diff --git a/kubernetes/common/certInitializer/templates/configmap.yaml b/kubernetes/common/certInitializer/templates/configmap.yaml index 7abbf9c7d8..7eae899cc1 100644 --- a/kubernetes/common/certInitializer/templates/configmap.yaml +++ b/kubernetes/common/certInitializer/templates/configmap.yaml @@ -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 }} -- cgit 1.2.3-korg