diff --git a/charts/fluent-operator/templates/fluentd-clusterfluentdconfig.yaml b/charts/fluent-operator/templates/fluentd-clusterfluentdconfig.yaml index 2a7f0e29c..15da1f3f6 100644 --- a/charts/fluent-operator/templates/fluentd-clusterfluentdconfig.yaml +++ b/charts/fluent-operator/templates/fluentd-clusterfluentdconfig.yaml @@ -8,9 +8,7 @@ metadata: config.fluentd.fluent.io/enabled: "true" spec: watchedNamespaces: - {{- range .Values.fluentd.watchedNamespaces }} - - {{ . }} - {{- end }} + {{- toYaml .Values.fluentd.watchedNamespaces | nindent 4 }} clusterFilterSelector: matchLabels: filter.fluentd.fluent.io/enabled: "true"