mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-06-07 06:42:39 +00:00
issue 7648:avoid snapshot leak on expose failure
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
1
changelogs/unreleased/7662-Lyndon-Li
Normal file
1
changelogs/unreleased/7662-Lyndon-Li
Normal file
@@ -0,0 +1 @@
|
||||
Fix issue #7648. Adjust the exposing logic to avoid exposing failure and snapshot leak when expose fails
|
||||
@@ -626,8 +626,7 @@ func TestRetainVSC(t *testing.T) {
|
||||
clientObj: []runtime.Object{vscObj},
|
||||
updated: &snapshotv1api.VolumeSnapshotContent{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: "fake-vsc",
|
||||
Finalizers: []string{volumeSnapshotContentProtectFinalizer},
|
||||
Name: "fake-vsc",
|
||||
},
|
||||
Spec: snapshotv1api.VolumeSnapshotContentSpec{
|
||||
DeletionPolicy: snapshotv1api.VolumeSnapshotContentRetain,
|
||||
|
||||
Reference in New Issue
Block a user