diff --git a/charts/opentelemetry-collector/templates/_helpers.tpl b/charts/opentelemetry-collector/templates/_helpers.tpl index 9613560fa..01da8afb2 100644 --- a/charts/opentelemetry-collector/templates/_helpers.tpl +++ b/charts/opentelemetry-collector/templates/_helpers.tpl @@ -69,7 +69,7 @@ app.kubernetes.io/component: agent-collector app.kubernetes.io/component: statefulset-collector {{- end -}} {{- if .Values.additionalLabels }} -{{ include "opentelemetry-collector.additionalLabels" . }} +{{ tpl (.Values.additionalLabels | toYaml) . }} {{- end }} {{- end }} @@ -119,12 +119,6 @@ Create the name of the clusterRoleBinding to use {{- end }} {{- end }} -{{- define "opentelemetry-collector.additionalLabels" -}} -{{- if .Values.additionalLabels }} -{{- tpl (.Values.additionalLabels | toYaml) . }} -{{- end }} -{{- end }} - {{/* Return the appropriate apiVersion for podDisruptionBudget. */}}