Skip to content

Commit

Permalink
fix: render schedule annotations only if present in values (vmware-ta…
Browse files Browse the repository at this point in the history
…nzu#616)

Signed-off-by: Max Xu <[email protected]>
Signed-off-by: Wyatt Fry <[email protected]>
  • Loading branch information
maxsxu authored and Wyatt Fry committed Oct 24, 2024
1 parent fe3784a commit 1309ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/velero/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion charts/velero/templates/schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1309ab0

Please sign in to comment.