From bbb36ccf357d6baf7f13accbc0b169e6efceb3d4 Mon Sep 17 00:00:00 2001 From: Wyatt Fry Date: Tue, 29 Oct 2024 22:18:20 -0400 Subject: [PATCH] [velero] Add version label to deployment (#624) * fix: render schedule annotations only if present in values (#616) Signed-off-by: Max Xu Signed-off-by: Wyatt Fry * Add Kubernetes-recommended Version Label Signed-off-by: Wyatt Fry * Bump chart version Signed-off-by: Wyatt Fry --------- Signed-off-by: Max Xu Signed-off-by: Wyatt Fry Co-authored-by: Max Xu Co-authored-by: Wyatt Fry --- charts/velero/Chart.yaml | 2 +- charts/velero/templates/deployment.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/velero/Chart.yaml b/charts/velero/Chart.yaml index 9b2ef7f0..f83534a7 100644 --- a/charts/velero/Chart.yaml +++ b/charts/velero/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.14.1 kubeVersion: ">=1.16.0-0" description: A Helm chart for velero name: velero -version: 7.2.1 +version: 7.2.2 home: https://github.com/vmware-tanzu/velero icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png sources: diff --git a/charts/velero/templates/deployment.yaml b/charts/velero/templates/deployment.yaml index 93f80619..92a322e3 100644 --- a/charts/velero/templates/deployment.yaml +++ b/charts/velero/templates/deployment.yaml @@ -13,6 +13,7 @@ metadata: app.kubernetes.io/name: {{ include "velero.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} helm.sh/chart: {{ include "velero.chart" . }} component: velero {{- with .Values.labels }} @@ -36,6 +37,7 @@ spec: app.kubernetes.io/name: {{ include "velero.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} helm.sh/chart: {{ include "velero.chart" . }} {{- if .Values.podLabels }} {{- toYaml .Values.podLabels | nindent 8 }}