Skip to content

Commit 20191d4

Browse files
authored
feat(schedule): add annotation templating (vmware-tanzu#199)
Update charts/velero/templates/schedule.yaml Signed-off-by: Toni Tauro <[email protected]>
1 parent 1ea07c7 commit 20191d4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

charts/velero/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: 1.5.2
33
description: A Helm chart for velero
44
name: velero
5-
version: 2.14.4
5+
version: 2.14.5
66
home: https://github.com/vmware-tanzu/velero
77
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
88
sources:

charts/velero/templates/schedule.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ kind: Schedule
44
metadata:
55
name: {{ include "velero.fullname" $ }}-{{ $scheduleName }}
66
annotations:
7+
{{- if $schedule.annotations }}
8+
{{- toYaml $schedule.annotations | nindent 4 }}
9+
{{- end }}
710
{{- if $.Values.enableHelmHooks }}
811
"helm.sh/hook": post-install,post-upgrade
912
"helm.sh/hook-delete-policy": "before-hook-creation"

charts/velero/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ restic:
276276
# mybackup:
277277
# labels:
278278
# myenv: foo
279+
# annotations:
280+
# myenv: foo
279281
# schedule: "0 0 * * *"
280282
# template:
281283
# ttl: "240h"

0 commit comments

Comments
 (0)