File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ func (s *service) ControllerPublishVolume(
228
228
s .vols [i ] = v
229
229
230
230
if volInfo , ok := MockVolumes [req .VolumeId ]; ok {
231
- volInfo .ISPublished = true
231
+ volInfo .ISControllerPublished = true
232
232
MockVolumes [req .VolumeId ] = volInfo
233
233
}
234
234
@@ -628,7 +628,7 @@ func (s *service) ControllerExpandVolume(
628
628
return nil , status .Error (codes .NotFound , req .VolumeId )
629
629
}
630
630
631
- if s .config .DisableOnlineExpansion && MockVolumes [v .GetVolumeId ()].ISPublished {
631
+ if s .config .DisableOnlineExpansion && MockVolumes [v .GetVolumeId ()].ISControllerPublished {
632
632
return nil , status .Error (codes .Aborted , "volume is published and online volume expansion is not supported" )
633
633
}
634
634
Original file line number Diff line number Diff line change @@ -109,13 +109,14 @@ type service struct {
109
109
}
110
110
111
111
type Volume struct {
112
- VolumeCSI csi.Volume
113
- NodeID string
114
- ISStaged bool
115
- ISPublished bool
116
- ISEphemeral bool
117
- StageTargetPath string
118
- TargetPath string
112
+ VolumeCSI csi.Volume
113
+ NodeID string
114
+ ISStaged bool
115
+ ISPublished bool
116
+ ISEphemeral bool
117
+ ISControllerPublished bool
118
+ StageTargetPath string
119
+ TargetPath string
119
120
}
120
121
121
122
var MockVolumes map [string ]Volume
You can’t perform that action at this time.
0 commit comments