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.
1 parent accf345 commit 2fac868Copy full SHA for 2fac868
pkg/controller/controller.go
@@ -541,6 +541,9 @@ func (p *csiProvisioner) getVolumeContentSource(options controller.VolumeOptions
541
return nil, fmt.Errorf("snapshot %s is not Ready", options.PVC.Spec.DataSource.Name)
542
}
543
544
+ if snapshotObj.ObjectMeta.DeletionTimestamp != nil {
545
+ return nil, fmt.Errorf("snapshot %s is currently being deleted", options.PVC.Spec.DataSource.Name)
546
+ }
547
glog.V(5).Infof("VolumeSnapshot %+v", snapshotObj)
548
549
snapContentObj, err := p.snapshotClient.VolumesnapshotV1alpha1().VolumeSnapshotContents().Get(snapshotObj.Spec.SnapshotContentName, metav1.GetOptions{})
0 commit comments