From 2bbbb59701efb210ee9ff02705e41f9523844faa Mon Sep 17 00:00:00 2001 From: Nicolas Lamirault Date: Wed, 30 Oct 2024 16:52:50 +0100 Subject: [PATCH] feat(helm): use also previous label Signed-off-by: Nicolas Lamirault --- charts/opentelemetry-collector/templates/_helpers.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/opentelemetry-collector/templates/_helpers.tpl b/charts/opentelemetry-collector/templates/_helpers.tpl index 300a402eb..cdc1e69f0 100644 --- a/charts/opentelemetry-collector/templates/_helpers.tpl +++ b/charts/opentelemetry-collector/templates/_helpers.tpl @@ -15,12 +15,15 @@ Get component name {{- define "opentelemetry-collector.component" -}} {{- if eq .Values.mode "deployment" -}} app.kubernetes.io/component: standalone-collector +component: standalone-collector {{- end -}} {{- if eq .Values.mode "daemonset" -}} app.kubernetes.io/component: agent-collector +component: agent-collector {{- end -}} {{- if eq .Values.mode "statefulset" -}} app.kubernetes.io/component: statefulset-collector +component: statefulset-collector {{- end -}} {{- end }}