From 0851dbf27fdc820bd26c52900af1425fbecc5023 Mon Sep 17 00:00:00 2001 From: Max Xu Date: Wed, 28 Aug 2024 15:33:17 +0800 Subject: [PATCH] fix: render schedule annotations only if present in values 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 5187688d..1a1fbac6 100644 --- a/charts/velero/Chart.yaml +++ b/charts/velero/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.14.0 kubeVersion: ">=1.16.0-0" description: A Helm chart for velero name: velero -version: 7.1.5 +version: 7.1.6 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: