diff --git a/charts/opentelemetry-collector/templates/_helpers.tpl b/charts/opentelemetry-collector/templates/_helpers.tpl index 130bf2a7b..300a402eb 100644 --- a/charts/opentelemetry-collector/templates/_helpers.tpl +++ b/charts/opentelemetry-collector/templates/_helpers.tpl @@ -14,13 +14,13 @@ Get component name */}} {{- define "opentelemetry-collector.component" -}} {{- if eq .Values.mode "deployment" -}} -component: standalone-collector +app.kubernetes.io/component: standalone-collector {{- end -}} {{- if eq .Values.mode "daemonset" -}} -component: agent-collector +app.kubernetes.io/component: agent-collector {{- end -}} {{- if eq .Values.mode "statefulset" -}} -component: statefulset-collector +app.kubernetes.io/component: statefulset-collector {{- end -}} {{- end }}