From 9eca0fcbffcd64f98b8c90fd6d8c7b6bce5ac1ca Mon Sep 17 00:00:00 2001 From: Ashish Amarnath Date: Wed, 12 Aug 2020 12:09:07 -0700 Subject: [PATCH] Pass default-volumes-to-restic flag from create schedule to backup (#2776) * Pass default-volumes-to-restic flag from create schedule to backup Signed-off-by: Ashish Amarnath --- changelogs/unreleased/2776-ashish-amarnath | 1 + pkg/cmd/cli/schedule/create.go | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelogs/unreleased/2776-ashish-amarnath diff --git a/changelogs/unreleased/2776-ashish-amarnath b/changelogs/unreleased/2776-ashish-amarnath new file mode 100644 index 000000000..9405b5b8c --- /dev/null +++ b/changelogs/unreleased/2776-ashish-amarnath @@ -0,0 +1 @@ +Pass default-volumes-to-restic flag from create schedule to backup diff --git a/pkg/cmd/cli/schedule/create.go b/pkg/cmd/cli/schedule/create.go index 3a8dfd1d1..887144047 100644 --- a/pkg/cmd/cli/schedule/create.go +++ b/pkg/cmd/cli/schedule/create.go @@ -133,6 +133,7 @@ func (o *CreateOptions) Run(c *cobra.Command, f client.Factory) error { TTL: metav1.Duration{Duration: o.BackupOptions.TTL}, StorageLocation: o.BackupOptions.StorageLocation, VolumeSnapshotLocations: o.BackupOptions.SnapshotLocations, + DefaultVolumesToRestic: o.BackupOptions.DefaultVolumesToRestic.Value, }, Schedule: o.Schedule, },