Merge pull request #275 from huffmanca/update_snapshotclass_deletion

Allows VolumeSnapshot to be deleted if the class isn't found
This commit is contained in:
Kubernetes Prow Robot
2020-03-18 17:12:43 -07:00
committed by GitHub
5 changed files with 16 additions and 9 deletions

View File

@@ -1076,7 +1076,7 @@ func (ctrl *csiSnapshotCommonController) getSnapshotClass(className string) (*cr
class, err := ctrl.classLister.Get(className)
if err != nil {
klog.Errorf("failed to retrieve snapshot class %s from the informer: %q", className, err)
return nil, fmt.Errorf("failed to retrieve snapshot class %s from the informer: %q", className, err)
return nil, err
}
return class, nil