diff --git a/charts/opentelemetry-collector/templates/_helpers.tpl b/charts/opentelemetry-collector/templates/_helpers.tpl index cabaf126b..a7a59d63f 100644 --- a/charts/opentelemetry-collector/templates/_helpers.tpl +++ b/charts/opentelemetry-collector/templates/_helpers.tpl @@ -119,7 +119,9 @@ Create the name of the clusterRoleBinding to use {{- define "opentelemetry-collector.additionalLabels" -}} {{- if .Values.additionalLabels }} -{{- tpl (.Values.additionalLabels | toYaml) . }} +{{- range $key, $value := .Values.additionalLabels }} +{{ $key }}: {{ $value }} +{{- end }} {{- end }} {{- end }}