mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-04-24 17:50:34 +00:00
1
changelogs/unreleased/5303-lilongfeng0902
Normal file
1
changelogs/unreleased/5303-lilongfeng0902
Normal file
@@ -0,0 +1 @@
|
||||
check vsc null pointer
|
||||
@@ -940,6 +940,10 @@ func (c *backupController) deleteVolumeSnapshot(volumeSnapshots []*snapshotv1api
|
||||
if vs.Status.BoundVolumeSnapshotContentName != nil &&
|
||||
len(*vs.Status.BoundVolumeSnapshotContentName) > 0 {
|
||||
vsc = vscMap[*vs.Status.BoundVolumeSnapshotContentName]
|
||||
if nil == vsc {
|
||||
logger.Errorf("Not find %s from the vscMap", vs.Status.BoundVolumeSnapshotContentName)
|
||||
return
|
||||
}
|
||||
if vsc.Spec.DeletionPolicy == snapshotv1api.VolumeSnapshotContentDelete {
|
||||
modifyVSCFlag = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user