From 47b2f729b9ebe38508ecc046560da01922546df6 Mon Sep 17 00:00:00 2001 From: Max Xu Date: Thu, 5 Sep 2024 14:07:17 +0800 Subject: [PATCH] fix: render schedule annotations only if present in values (#616) Signed-off-by: Max Xu --- charts/velero/Chart.yaml | 2 +- charts/velero/templates/schedule.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/velero/Chart.yaml b/charts/velero/Chart.yaml index 694cacad..9b2ef7f0 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.0 +version: 7.2.1 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/schedule.yaml b/charts/velero/templates/schedule.yaml index 4e9907fd..d09d9005 100644 --- a/charts/velero/templates/schedule.yaml +++ b/charts/velero/templates/schedule.yaml @@ -5,8 +5,8 @@ kind: Schedule metadata: name: {{ include "velero.fullname" $ }}-{{ $scheduleName }} namespace: {{ $.Release.Namespace }} - annotations: {{- if $schedule.annotations }} + annotations: {{- toYaml $schedule.annotations | nindent 4 }} {{- end }} labels: