From 1cbee400702329b8ea66255c4f559e21a7071f66 Mon Sep 17 00:00:00 2001 From: Rakesh Garimella Date: Thu, 2 Apr 2020 15:48:38 +0200 Subject: [PATCH] Fluent-bit exclude path works only when there is not space around comma (#7880) --- resources/logging/charts/fluentbit/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/logging/charts/fluentbit/templates/_helpers.tpl b/resources/logging/charts/fluentbit/templates/_helpers.tpl index c1197a987c5a..6f684b3d4503 100644 --- a/resources/logging/charts/fluentbit/templates/_helpers.tpl +++ b/resources/logging/charts/fluentbit/templates/_helpers.tpl @@ -124,7 +124,7 @@ Return the arguments of the metrics-collection script {{- if .Values.conf.Input.Kubernetes_loki.exclude.namespaces -}} {{- $namespaces := splitList "," .Values.conf.Input.Kubernetes_loki.exclude.namespaces -}} {{- range $namespaces -}} -{{- printf "/var/log/containers/*_%s_*.log, " . -}} +{{- printf "/var/log/containers/*_%s_*.log," . -}} {{- end -}} {{- end -}} {{- if .Values.conf.Input.Kubernetes_loki.Exclude_Path -}}