diff --git a/charts/velero/ci/test-values-back-compat.yaml b/charts/velero/ci/test-values-back-compat.yaml index 0ae3469f9..0e990ac85 100644 --- a/charts/velero/ci/test-values-back-compat.yaml +++ b/charts/velero/ci/test-values-back-compat.yaml @@ -19,6 +19,13 @@ serviceAccount: server: name: velero +schedules: + mybackup: + schedule: "0 0 * * *" + template: + ttl: "240h" + includedNamespaces: + - foo # Whether or not to clean up CustomResourceDefintions when deleting a release. # Cleaning up CRDs will delete the BackupStorageLocation and VolumeSnapshotLocation instances, which would have to be reconfigured. # Backup data in object storage will _not_ be deleted, however Backup instances in the Kubernetes API will. diff --git a/charts/velero/ci/test-values.yaml b/charts/velero/ci/test-values.yaml index 217439e3e..7aee081de 100644 --- a/charts/velero/ci/test-values.yaml +++ b/charts/velero/ci/test-values.yaml @@ -18,6 +18,13 @@ serviceAccount: server: name: velero +schedules: + - name: mybackup + schedule: "0 0 * * *" + template: + ttl: "240h" + includedNamespaces: + - foo # Whether or not to clean up CustomResourceDefintions when deleting a release. # Cleaning up CRDs will delete the BackupStorageLocation and VolumeSnapshotLocation instances, which would have to be reconfigured. # Backup data in object storage will _not_ be deleted, however Backup instances in the Kubernetes API will. diff --git a/charts/velero/tests/__snapshot__/back-compat-snapshot_test.yaml.snap b/charts/velero/tests/__snapshot__/back-compat-snapshot_test.yaml.snap index 78c6524d1..ae67f8c54 100644 --- a/charts/velero/tests/__snapshot__/back-compat-snapshot_test.yaml.snap +++ b/charts/velero/tests/__snapshot__/back-compat-snapshot_test.yaml.snap @@ -164,3 +164,22 @@ manifest should match snapshot: bucket: velero region: us-west-1 provider: aws + 5: | + apiVersion: velero.io/v1 + kind: Schedule + metadata: + annotations: + helm.sh/hook: post-install,post-upgrade + helm.sh/hook-delete-policy: before-hook-creation + labels: + app.kubernetes.io/instance: RELEASE-NAME + app.kubernetes.io/managed-by: Tiller + app.kubernetes.io/name: velero + helm.sh/chart: velero-2.14.0 + name: RELEASE-NAME-velero-mybackup + spec: + schedule: 0 0 * * * + template: + includedNamespaces: + - foo + ttl: 240h diff --git a/charts/velero/tests/__snapshot__/snapshot__test.yaml.snap b/charts/velero/tests/__snapshot__/snapshot__test.yaml.snap index 78c6524d1..ae67f8c54 100644 --- a/charts/velero/tests/__snapshot__/snapshot__test.yaml.snap +++ b/charts/velero/tests/__snapshot__/snapshot__test.yaml.snap @@ -164,3 +164,22 @@ manifest should match snapshot: bucket: velero region: us-west-1 provider: aws + 5: | + apiVersion: velero.io/v1 + kind: Schedule + metadata: + annotations: + helm.sh/hook: post-install,post-upgrade + helm.sh/hook-delete-policy: before-hook-creation + labels: + app.kubernetes.io/instance: RELEASE-NAME + app.kubernetes.io/managed-by: Tiller + app.kubernetes.io/name: velero + helm.sh/chart: velero-2.14.0 + name: RELEASE-NAME-velero-mybackup + spec: + schedule: 0 0 * * * + template: + includedNamespaces: + - foo + ttl: 240h diff --git a/charts/velero/tests/back-compat-snapshot_test.yaml b/charts/velero/tests/back-compat-snapshot_test.yaml index 3d0524339..a8ed8f6f3 100644 --- a/charts/velero/tests/back-compat-snapshot_test.yaml +++ b/charts/velero/tests/back-compat-snapshot_test.yaml @@ -3,6 +3,7 @@ templates: - backupstoragelocation.yaml - restic-daemonset.yaml - volumesnapshotlocation.yaml + - schedule.yaml tests: - it: manifest should match snapshot values: diff --git a/charts/velero/tests/snapshot__test.yaml b/charts/velero/tests/snapshot__test.yaml index 80f5b00d8..b62f46833 100644 --- a/charts/velero/tests/snapshot__test.yaml +++ b/charts/velero/tests/snapshot__test.yaml @@ -3,6 +3,7 @@ templates: - backupstoragelocation.yaml - restic-daemonset.yaml - volumesnapshotlocation.yaml + - schedule.yaml tests: - it: manifest should match snapshot values: diff --git a/charts/velero/values.yaml b/charts/velero/values.yaml index 896a429cc..a4c3e1a68 100644 --- a/charts/velero/values.yaml +++ b/charts/velero/values.yaml @@ -262,13 +262,13 @@ restic: # Backup schedules to create. # Eg: # schedules: -# name: mybackup +# - name: mybackup # schedule: "0 0 * * *" # template: # ttl: "240h" # includedNamespaces: # - foo -schedules: [] +# schedules: [] scheduleLabels: {} @@ -287,7 +287,7 @@ configMaps: {} ## End of additional Velero resource settings. ## -# Depricated configuration key +# Depricated configuration: backupStorageLocation: {} volumeSnapshotLocation: {}