From eb332e6a77ba7ae27c3be5a148fc9e7318cf199e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wenkai=20Yin=28=E5=B0=B9=E6=96=87=E5=BC=80=29?= Date: Wed, 22 Sep 2021 18:06:27 +0800 Subject: [PATCH] Specify the "--snapshot-volumes=false" option explicitly when running backup with Restic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the "--snapshot-volumes=false" isn't specified explicitly, the vSphere plugin will always take snapshots for the volumes even though the "--default-volumes-to-restic" is specified This can be removed if the logic of vSphere plugin changes Signed-off-by: Wenkai Yin(尹文开) --- test/e2e/velero_utils.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/e2e/velero_utils.go b/test/e2e/velero_utils.go index 760eb4eb1..d60d2bb65 100644 --- a/test/e2e/velero_utils.go +++ b/test/e2e/velero_utils.go @@ -236,6 +236,11 @@ func veleroBackupNamespace(ctx context.Context, veleroCLI string, veleroNamespac args = append(args, "--snapshot-volumes") } else { args = append(args, "--default-volumes-to-restic") + // To workaround https://github.com/vmware-tanzu/velero-plugin-for-vsphere/issues/347 for vsphere plugin v1.1.1 + // if the "--snapshot-volumes=false" isn't specified explicitly, the vSphere plugin will always take snapshots + // for the volumes even though the "--default-volumes-to-restic" is specified + // TODO This can be removed if the logic of vSphere plugin bump up to 1.3 + args = append(args, "--snapshot-volumes=false") } if backupLocation != "" { args = append(args, "--storage-location", backupLocation)