From 9e33cc2c192e181660cd2e47116e2870b12ed4b9 Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Tue, 25 Jun 2019 06:29:43 -0500 Subject: [PATCH] Fluentd: Fix whitespace chomps for volumes and volume mounts This fixes the whitespace chomps for adding extra volumes and volume mounts via values.yaml for the Fluentd chart, as currently too much whitespace is removed and the extra volumes and mounts are not added correctly Change-Id: I9cf67c3321339078ac795a7290f441b16cc41d41 Signed-off-by: Steve Wilkerson --- fluentd/templates/deployment-fluentd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluentd/templates/deployment-fluentd.yaml b/fluentd/templates/deployment-fluentd.yaml index 05be21f39..b92fb3935 100644 --- a/fluentd/templates/deployment-fluentd.yaml +++ b/fluentd/templates/deployment-fluentd.yaml @@ -185,7 +185,7 @@ spec: mountPath: /tmp/fluentd.sh subPath: fluentd.sh readOnly: true -{{- if $mounts_fluentd.volumeMounts }}{{ toYaml $mounts_fluentd.volumeMounts | indent 12 }}{{- end }} +{{ if $mounts_fluentd.volumeMounts }}{{ toYaml $mounts_fluentd.volumeMounts | indent 12 }}{{- end }} volumes: - name: pod-tmp emptyDir: {} @@ -207,5 +207,5 @@ spec: configMap: name: {{ printf "%s-%s" $envAll.Release.Name "fluentd-bin" | quote }} defaultMode: 0555 -{{- if $mounts_fluentd.volumes }}{{ toYaml $mounts_fluentd.volumes | indent 8 }}{{- end }} +{{ if $mounts_fluentd.volumes }}{{ toYaml $mounts_fluentd.volumes | indent 8 }}{{- end }} {{- end }}