forked from vmware-tanzu/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschedule.yaml
27 lines (27 loc) · 864 Bytes
/
schedule.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{{- range $scheduleName, $schedule := .Values.schedules }}
apiVersion: velero.io/v1
kind: Schedule
metadata:
name: {{ include "velero.fullname" $ }}-{{ $scheduleName }}
annotations:
{{- if $schedule.annotations }}
{{- toYaml $schedule.annotations | nindent 4 }}
{{- end }}
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": "before-hook-creation"
labels:
app.kubernetes.io/name: {{ include "velero.name" $ }}
app.kubernetes.io/instance: {{ $.Release.Name }}
app.kubernetes.io/managed-by: {{ $.Release.Service }}
helm.sh/chart: {{ include "velero.chart" $ }}
{{- if $schedule.labels }}
{{- toYaml $schedule.labels | nindent 4 }}
{{- end }}
spec:
schedule: {{ $schedule.schedule | quote }}
{{- with $schedule.template }}
template:
{{- toYaml . | nindent 4 }}
{{- end }}
---
{{- end }}