-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the vsc created by backup sync controller deletable #4832
Conversation
8386835
to
f429186
Compare
This commit makes sure the behavior of the plugin is consistent with velero, it reset the fields in VSC before it's persisted, to avoid causing unexpected behavior in CSI snapshotter when the VSC is restored. More details please see the description in vmware-tanzu/velero#4832 Signed-off-by: Daniel Jiang <jiangd@vmware.com>
Fixes vmware-tanzu#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>
7196dce
to
4f9e445
Compare
Codecov Report
@@ Coverage Diff @@
## main #4832 +/- ##
==========================================
+ Coverage 40.92% 41.36% +0.43%
==========================================
Files 203 204 +1
Lines 17995 18059 +64
==========================================
+ Hits 7365 7470 +105
+ Misses 10104 10042 -62
- Partials 526 547 +21
Continue to review full report at Codecov.
|
Fixes #4760
This commit make changes in 2 parts:
Source
field to remove the VolumeHandle, so that thecsi-snapshotter will not try to call
CreateSnapshot
when its syncedto another cluster with a backup.
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
Thank you for contributing to Velero!
Please add a summary of your change
Does your change fix a particular issue?
Fixes #(issue)
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.