Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
feat: allow velero schedule and ttl to be configured
Browse files Browse the repository at this point in the history
Signed-off-by: Cai Cooper <caicooper82@gmail.com>
  • Loading branch information
cagiti authored and jenkins-x-bot committed Feb 12, 2020
1 parent 73ecfb4 commit 79fabf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions systems/velero-backups/templates/default-backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Schedule
metadata:
name: default-backup
spec:
schedule: '@every 10m'
schedule: {{ .Values.velero.schedule | quote }}
template:
excludedNamespaces: null
excludedResources: null
Expand All @@ -16,6 +16,6 @@ spec:
includedResources: null
labelSelector: null
storageLocation: ""
ttl: 720h0m0s
ttl: {{ .Values.velero.ttl }}
volumeSnapshotLocations: null
{{- end }}
4 changes: 3 additions & 1 deletion systems/velero-backups/values.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ velero:
{{- if and (hasKey .Requirements "velero") (hasKey .Requirements.velero "namespace") }}
{{- if .Requirements.velero.namespace }}
enabled: true
schedule: {{ .Requirements.velero.schedule | default "0 * * * *" | quote }}
ttl: {{ .Requirements.velero.ttl | default "720h0m0s" }}
{{- else }}
enabled: false
{{- end }}
{{- else }}
enabled: false
{{- end }}
{{- end }}

0 comments on commit 79fabf9

Please sign in to comment.