File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,13 @@ func NewNodeService(
4242const encryptionPassphraseKey = "encryption-passphrase"
4343
4444func (s * NodeService ) NodeStageVolume (ctx context.Context , req * proto.NodeStageVolumeRequest ) (* proto.NodeStageVolumeResponse , error ) {
45- return nil , status .Error (codes .Unimplemented , "not supported" )
45+ // while we dont do anything here, Swarm 23.0.1 might require this
46+ return & proto.NodeStageVolumeResponse {}, nil
4647}
4748
4849func (s * NodeService ) NodeUnstageVolume (ctx context.Context , req * proto.NodeUnstageVolumeRequest ) (* proto.NodeUnstageVolumeResponse , error ) {
49- return nil , status .Error (codes .Unimplemented , "not supported" )
50+ // while we dont do anything here, Swarm 23.0.1 might require this
51+ return & proto.NodeUnstageVolumeResponse {}, nil
5052}
5153
5254func (s * NodeService ) NodePublishVolume (ctx context.Context , req * proto.NodePublishVolumeRequest ) (* proto.NodePublishVolumeResponse , error ) {
@@ -164,6 +166,13 @@ func (s *NodeService) NodeGetCapabilities(ctx context.Context, req *proto.NodeGe
164166 },
165167 },
166168 },
169+ {
170+ Type : & proto.NodeServiceCapability_Rpc {
171+ Rpc : & proto.NodeServiceCapability_RPC {
172+ Type : proto .NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME ,
173+ },
174+ },
175+ },
167176 },
168177 }
169178 return resp , nil
You can’t perform that action at this time.
0 commit comments