From 425bbfda986defaa7e20594340c83a854ab7b56a Mon Sep 17 00:00:00 2001 From: Nicolas Lamirault Date: Wed, 23 Oct 2024 15:33:14 +0200 Subject: [PATCH] feat(opentelemetry-collector): use Kubernetes recommended label for component Signed-off-by: Nicolas Lamirault --- charts/opentelemetry-collector/templates/_helpers.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }}