Skip to content

Commit

Permalink
[kube-state-metrics] Improve customLabels template flexibility (#4738)
Browse files Browse the repository at this point in the history
* Update 'Values.customLabels' templating in 'kube-state-metrics.labels' helper function to use tpl

Signed-off-by: Samuel Sarnowski <[email protected]>

---------

Signed-off-by: Samuel Sarnowski <[email protected]>
  • Loading branch information
sarnowski-defense-unicorns authored Jul 26, 2024
1 parent bc09595 commit f43a9ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kube-state-metrics/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords:
- prometheus
- kubernetes
type: application
version: 5.22.0
version: 5.22.1
appVersion: 2.13.0
home: https://github.com/kubernetes/kube-state-metrics/
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/kube-state-metrics/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ app.kubernetes.io/part-of: {{ template "kube-state-metrics.name" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
{{- if .Values.customLabels }}
{{ toYaml .Values.customLabels }}
{{ tpl (toYaml .Values.customLabels) . }}
{{- end }}
{{- if .Values.releaseLabel }}
release: {{ .Release.Name }}
Expand Down

0 comments on commit f43a9ac

Please sign in to comment.