Skip to content

Commit

Permalink
change staging/unstaging to noop to make things work on swarm
Browse files Browse the repository at this point in the history
  • Loading branch information
s4ke committed Feb 12, 2023
1 parent 22eef6b commit 619fa5c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions driver/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ func NewNodeService(
const encryptionPassphraseKey = "encryption-passphrase"

func (s *NodeService) NodeStageVolume(ctx context.Context, req *proto.NodeStageVolumeRequest) (*proto.NodeStageVolumeResponse, error) {
return nil, status.Error(codes.Unimplemented, "not supported")
// while we dont do anything here, Swarm 23.0.1 might require this
return &proto.NodeStageVolumeResponse{}, nil
}

func (s *NodeService) NodeUnstageVolume(ctx context.Context, req *proto.NodeUnstageVolumeRequest) (*proto.NodeUnstageVolumeResponse, error) {
return nil, status.Error(codes.Unimplemented, "not supported")
// while we dont do anything here, Swarm 23.0.1 might require this
return &proto.NodeUnstageVolumeResponse{}, nil
}

func (s *NodeService) NodePublishVolume(ctx context.Context, req *proto.NodePublishVolumeRequest) (*proto.NodePublishVolumeResponse, error) {
Expand Down Expand Up @@ -164,6 +166,13 @@ func (s *NodeService) NodeGetCapabilities(ctx context.Context, req *proto.NodeGe
},
},
},
{
Type: &proto.NodeServiceCapability_Rpc{
Rpc: &proto.NodeServiceCapability_RPC{
Type: proto.NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME,
},
},
},
},
}
return resp, nil
Expand Down

0 comments on commit 619fa5c

Please sign in to comment.