We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99b7db9 commit 639e97dCopy full SHA for 639e97d
mock/service/controller.go
@@ -227,6 +227,11 @@ func (s *service) ControllerPublishVolume(
227
v.VolumeContext[ReadOnlyKey] = roVal
228
s.vols[i] = v
229
230
+ if volInfo, ok := MockVolumes[req.VolumeId]; ok {
231
+ volInfo.ISPublished = true
232
+ MockVolumes[req.VolumeId] = volInfo
233
+ }
234
+
235
if hookVal, hookMsg := s.execHook("ControllerPublishVolumeEnd"); hookVal != codes.OK {
236
return nil, status.Errorf(hookVal, hookMsg)
237
}
mock/service/service.go
@@ -109,7 +109,6 @@ type service struct {
109
110
111
type Volume struct {
112
- sync.Mutex
113
VolumeCSI csi.Volume
114
NodeID string
115
ISStaged bool
0 commit comments