Skip to content

Commit

Permalink
Fixes vmware-tanzu#90 - schedule.template
Browse files Browse the repository at this point in the history
BREAKING CHANGE

Signed-off-by: W. Kavanaugh Latiolais <[email protected]>
  • Loading branch information
kav committed Aug 30, 2020
1 parent d648f35 commit 106c462
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions charts/velero/templates/schedule.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{- range $scheduleName, $schedule := .Values.schedules }}
{{- range .Values.schedules }}
apiVersion: velero.io/v1
kind: Schedule
metadata:
name: {{ include "velero.fullname" $ }}-{{ $scheduleName }}
name: {{ include "velero.fullname" $ }}-{{ .name }}
labels:
app.kubernetes.io/name: {{ include "velero.name" $ }}
app.kubernetes.io/instance: {{ $.Release.Name }}
Expand All @@ -12,8 +12,8 @@ metadata:
{{- toYaml .Values.scheduleLabels | nindent 4 }}
{{- end }}
spec:
schedule: {{ $schedule.schedule | quote }}
{{- with $schedule.template }}
schedule: {{ .schedule | quote }}
{{- with .template }}
template:
{{- toYaml . | nindent 4 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/velero/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ restic:
# ttl: "240h"
# includedNamespaces:
# - foo
schedules: {}
schedules: []

scheduleLabels: {}

Expand Down

0 comments on commit 106c462

Please sign in to comment.