Skip to content

Commit

Permalink
feat(helm): use also previous label
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault committed Oct 30, 2024
1 parent 01bef31 commit 2bbbb59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/opentelemetry-collector/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 2bbbb59

Please sign in to comment.