From cc348f15504ec99407dd9447e3c20cefc45c863d Mon Sep 17 00:00:00 2001 From: jw-maynard Date: Thu, 3 Aug 2023 14:43:48 -0700 Subject: [PATCH 1/3] Add the AppVersion to cluster-autoscaler.labels as app.kubernetes.io/version --- charts/cluster-autoscaler/templates/_helpers.tpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/cluster-autoscaler/templates/_helpers.tpl b/charts/cluster-autoscaler/templates/_helpers.tpl index 944fd1cf6f24..3bf552dbd1da 100644 --- a/charts/cluster-autoscaler/templates/_helpers.tpl +++ b/charts/cluster-autoscaler/templates/_helpers.tpl @@ -40,11 +40,14 @@ app.kubernetes.io/name: {{ include "cluster-autoscaler.name" . | quote }} {{/* -Return labels, including instance and name. +Return labels, including instance, name and version. */}} {{- define "cluster-autoscaler.labels" -}} {{ include "cluster-autoscaler.instance-name" . }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} helm.sh/chart: {{ include "cluster-autoscaler.chart" . | quote }} {{- if .Values.additionalLabels }} {{ toYaml .Values.additionalLabels }} From 1b69238b5d08f082c127cc250b45b91f57d72eb3 Mon Sep 17 00:00:00 2001 From: jw-maynard Date: Thu, 3 Aug 2023 14:51:29 -0700 Subject: [PATCH 2/3] Bump version in chart.yaml --- charts/cluster-autoscaler/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/cluster-autoscaler/Chart.yaml b/charts/cluster-autoscaler/Chart.yaml index c5219cf940d0..f6dd2342319b 100644 --- a/charts/cluster-autoscaler/Chart.yaml +++ b/charts/cluster-autoscaler/Chart.yaml @@ -11,4 +11,4 @@ name: cluster-autoscaler sources: - https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler type: application -version: 9.29.4 +version: 9.30.0 From bb623b0abb9be8f7cc931e8a3c35fbb84aa18aaa Mon Sep 17 00:00:00 2001 From: Guy Templeton Date: Tue, 14 Nov 2023 23:12:48 +0000 Subject: [PATCH 3/3] Update Chart.yaml --- charts/cluster-autoscaler/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/cluster-autoscaler/Chart.yaml b/charts/cluster-autoscaler/Chart.yaml index ab21344531b2..f6dd2342319b 100644 --- a/charts/cluster-autoscaler/Chart.yaml +++ b/charts/cluster-autoscaler/Chart.yaml @@ -11,4 +11,4 @@ name: cluster-autoscaler sources: - https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler type: application -version: 9.30.0 \ No newline at end of file +version: 9.30.0