{{- range $name, $schedule := .Values.schedules }}
---
apiVersion: velero.io/v1
kind: Schedule
metadata:
  name: {{ $name }}
  namespace: velero
  labels:
    {{- include "velero.labels" $ | nindent 4 }}
spec:
  schedule: {{ $schedule.schedule | quote }}
  template:
    ttl: {{ $schedule.template.ttl | quote }}
    includedNamespaces:
      {{- range $schedule.template.includedNamespaces }}
      - {{ . }}
      {{- end }}
{{- end }}
