Skip to content

Commit ad457d6

Browse files
committed
Support simple NodeGetInfo
1 parent ae988a3 commit ad457d6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pkg/gce-csi-driver/node.go

+10-1
Original file line numberDiff line numberDiff line change
@@ -266,5 +266,14 @@ func (ns *GCENodeServer) NodeGetCapabilities(ctx context.Context, req *csi.NodeG
266266
}
267267

268268
func (ns *GCENodeServer) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error) {
269-
return nil, status.Error(codes.Unimplemented, "")
269+
glog.Infof("NodeGetInfo called with req: %#v", req)
270+
271+
resp := &csi.NodeGetInfoResponse{
272+
NodeId: ns.Driver.nodeID,
273+
// TODO: Set MaxVolumesPerNode based on Node Type
274+
// Default of 0 means that CO Decides how many nodes can be published
275+
MaxVolumesPerNode: 0,
276+
AccessibleTopology: nil,
277+
}
278+
return resp, nil
270279
}

0 commit comments

Comments
 (0)