Skip to content

Commit

Permalink
csi: stub methods for server-to-controller RPC calls (#7117)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Mar 3, 2020
1 parent fafffe3 commit e6156e7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nomad/csi_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,3 +406,17 @@ func (v *CSIPlugin) Get(args *structs.CSIPluginGetRequest, reply *structs.CSIPlu
}}
return v.srv.blockingRPC(&opts)
}

// controllerPublishVolume sends publish request to the CSI controller
// plugin associated with a volume, if any.
func (srv *Server) controllerPublishVolume(req *structs.CSIVolumeClaimRequest, resp *structs.CSIVolumeClaimResponse) error {
// TODO(tgross): implement me!
return nil
}

// controllerUnpublishVolume sends an unpublish request to the CSI
// controller plugin associated with a volume, if any.
func (srv *Server) controllerUnpublishVolume(req *structs.CSIVolumeClaimRequest, nodeID string) error {
// TODO(tgross): implement me!
return nil
}

0 comments on commit e6156e7

Please sign in to comment.