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 f1bd856 + 2df9ddc commit 4dd974eCopy full SHA for 4dd974e
mock/service/controller.go
@@ -244,7 +244,9 @@ func (s *service) ControllerUnpublishVolume(
244
245
i, v := s.findVolNoLock("id", req.VolumeId)
246
if i < 0 {
247
- return nil, status.Error(codes.NotFound, req.VolumeId)
+ // Not an error: a non-existent volume is not published.
248
+ // See also https://github.com/kubernetes-csi/external-attacher/pull/165
249
+ return &csi.ControllerUnpublishVolumeResponse{}, nil
250
}
251
252
// devPathKey is the key in the volume's attributes that is set to a
0 commit comments