Skip to content

Commit 619fa5c

Browse files
committed
change staging/unstaging to noop to make things work on swarm
1 parent 22eef6b commit 619fa5c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

driver/node.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ func NewNodeService(
4242
const encryptionPassphraseKey = "encryption-passphrase"
4343

4444
func (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

4849
func (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

5254
func (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

0 commit comments

Comments
 (0)