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 -}}