Skip to content

Commit

Permalink
feat(schedule): add annotation templating (#199)
Browse files Browse the repository at this point in the history
Update charts/velero/templates/schedule.yaml

Signed-off-by: Toni Tauro <[email protected]>
  • Loading branch information
eyenx authored Jan 11, 2021
1 parent 1ea07c7 commit 20191d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/velero/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.5.2
description: A Helm chart for velero
name: velero
version: 2.14.4
version: 2.14.5
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
Expand Down
3 changes: 3 additions & 0 deletions charts/velero/templates/schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Schedule
metadata:
name: {{ include "velero.fullname" $ }}-{{ $scheduleName }}
annotations:
{{- if $schedule.annotations }}
{{- toYaml $schedule.annotations | nindent 4 }}
{{- end }}
{{- if $.Values.enableHelmHooks }}
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": "before-hook-creation"
Expand Down
2 changes: 2 additions & 0 deletions charts/velero/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ restic:
# mybackup:
# labels:
# myenv: foo
# annotations:
# myenv: foo
# schedule: "0 0 * * *"
# template:
# ttl: "240h"
Expand Down

0 comments on commit 20191d4

Please sign in to comment.