We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c04206 + 2fac868 commit 5cfa08eCopy full SHA for 5cfa08e
pkg/controller/controller.go
@@ -557,6 +557,9 @@ func (p *csiProvisioner) getVolumeContentSource(options controller.VolumeOptions
557
return nil, fmt.Errorf("snapshot %s is not Ready", options.PVC.Spec.DataSource.Name)
558
}
559
560
+ if snapshotObj.ObjectMeta.DeletionTimestamp != nil {
561
+ return nil, fmt.Errorf("snapshot %s is currently being deleted", options.PVC.Spec.DataSource.Name)
562
+ }
563
glog.V(5).Infof("VolumeSnapshot %+v", snapshotObj)
564
565
snapContentObj, err := p.snapshotClient.VolumesnapshotV1alpha1().VolumeSnapshotContents().Get(snapshotObj.Spec.SnapshotContentName, metav1.GetOptions{})
0 commit comments