github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/velero/templates/schedule.yaml (about) 1 {{- range $scheduleName, $schedule := .Values.schedules }} 2 {{- if (not $schedule.disabled) }} 3 apiVersion: velero.io/v1 4 kind: Schedule 5 metadata: 6 name: {{ include "velero.fullname" $ }}-{{ $scheduleName }} 7 namespace: {{ $.Release.Namespace }} 8 annotations: 9 {{- if $schedule.annotations }} 10 {{- toYaml $schedule.annotations | nindent 4 }} 11 {{- end }} 12 "helm.sh/hook": post-install,post-upgrade,post-rollback 13 "helm.sh/hook-delete-policy": before-hook-creation 14 labels: 15 app.kubernetes.io/name: {{ include "velero.name" $ }} 16 app.kubernetes.io/instance: {{ $.Release.Name }} 17 app.kubernetes.io/managed-by: {{ $.Release.Service }} 18 helm.sh/chart: {{ include "velero.chart" $ }} 19 {{- if $schedule.labels }} 20 {{- toYaml $schedule.labels | nindent 4 }} 21 {{- end }} 22 spec: 23 {{- if $schedule.useOwnerReferencesInBackup }} 24 useOwnerReferencesInBackup: {{ $schedule.useOwnerReferencesInBackup }} 25 {{- end }} 26 schedule: {{ $schedule.schedule | quote }} 27 {{- with $schedule.template }} 28 template: 29 {{- toYaml . | nindent 4 }} 30 {{- end }} 31 --- 32 {{- end }} 33 {{- end }}