mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
util: add helper for group controller
Added helper function to add the group controller capabilities which needs to be included by csi driver that wants to implement group controller. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
dd235d88e0
commit
aa39b3dc1f
@ -95,6 +95,18 @@ func NewControllerServiceCapability(ctrlCap csi.ControllerServiceCapability_RPC_
|
||||
}
|
||||
}
|
||||
|
||||
// NewGroupControllerServiceCapability returns group controller capabilities.
|
||||
func NewGroupControllerServiceCapability(ctrlCap csi.GroupControllerServiceCapability_RPC_Type,
|
||||
) *csi.GroupControllerServiceCapability {
|
||||
return &csi.GroupControllerServiceCapability{
|
||||
Type: &csi.GroupControllerServiceCapability_Rpc{
|
||||
Rpc: &csi.GroupControllerServiceCapability_RPC{
|
||||
Type: ctrlCap,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// NewMiddlewareServerOption creates a new grpc.ServerOption that configures a
|
||||
// common format for log messages and other gRPC related handlers.
|
||||
func NewMiddlewareServerOption() grpc.ServerOption {
|
||||
|
Reference in New Issue
Block a user