velero/pkg/persistence
Daniel Jiang 4f9e445142 Make the vsc created by backup sync controller deletable
Fixes #4760

This commit make changes in 2 parts:
1) When a volumesnapshotcontent is persisted during backup, velero will reset its
   `Source` field to remove the VolumeHandle, so that the
   csi-snapshotter will not try to call `CreateSnapshot` when its synced
   to another cluster with a backup.
2) Make sure the referenced volumesnapshotclasses are persisted and
   synced with the backup, so that when the volumesnapshotcontent is
   deleted the storage snapshot is also removed.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2022-04-19 15:06:59 +08:00
..
mocks Make the vsc created by backup sync controller deletable 2022-04-19 15:06:59 +08:00
in_memory_object_store.go Pass configured BSL credential to plugin via config (#3442) 2021-03-04 13:43:15 -08:00
object_store.go Make the vsc created by backup sync controller deletable 2022-04-19 15:06:59 +08:00
object_store_layout.go Make the vsc created by backup sync controller deletable 2022-04-19 15:06:59 +08:00
object_store_test.go Adds <backup-name>-itemsnapshots.gz file to backup (when provided). (#4429) 2021-12-13 14:47:50 -05:00