Skip to content

Commit cb785f2

Browse files
authored
Merge pull request #6012 from jw-maynard/add-version-labels
Add the AppVersion to labels as app.kubernetes.io/version
2 parents dc3a239 + bb623b0 commit cb785f2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

charts/cluster-autoscaler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ name: cluster-autoscaler
1111
sources:
1212
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
1313
type: application
14-
version: 9.29.5
14+
version: 9.30.0

charts/cluster-autoscaler/templates/_helpers.tpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,14 @@ app.kubernetes.io/name: {{ include "cluster-autoscaler.name" . | quote }}
4040

4141

4242
{{/*
43-
Return labels, including instance and name.
43+
Return labels, including instance, name and version.
4444
*/}}
4545
{{- define "cluster-autoscaler.labels" -}}
4646
{{ include "cluster-autoscaler.instance-name" . }}
4747
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
48+
{{- if .Chart.AppVersion }}
49+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
50+
{{- end }}
4851
helm.sh/chart: {{ include "cluster-autoscaler.chart" . | quote }}
4952
{{- if .Values.additionalLabels }}
5053
{{ toYaml .Values.additionalLabels }}

0 commit comments

Comments
 (0)