Skip to content

Commit

Permalink
Fix newline issues when specifying additionalLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
brdotv2 committed Dec 4, 2024
1 parent 831603f commit fd82691
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/opentelemetry-collector/ci/deployment-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ resources:
podLabels:
testLabel: "{{ .Values.global.test }}"

additionalLabels:
testLabel: "{{ .Values.global.test }}"
someLabel: "someValue"

ingress:
enabled: true
hosts:
Expand Down
2 changes: 2 additions & 0 deletions charts/opentelemetry-collector/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ app.kubernetes.io/component: agent-collector
{{- if eq .Values.mode "statefulset" }}
app.kubernetes.io/component: statefulset-collector
{{- end -}}
{{- if .Values.additionalLabels }}
{{ include "opentelemetry-collector.additionalLabels" . }}
{{- end }}
{{- end }}

{{/*
Selector labels
Expand Down

0 comments on commit fd82691

Please sign in to comment.