rbd: migration of replication controller server

this commit migrates the replication controller server
from internal/rbd and adds it to csi-addons.

Signed-off-by: riya-singhal31 <rsinghal@redhat.com>
This commit is contained in:
riya-singhal31
2023-06-20 15:14:39 +05:30
committed by mergify[bot]
parent cdaa9264eb
commit dbdb9086d8
2 changed files with 14 additions and 20 deletions

View File

@ -82,6 +82,12 @@ type ReplicationServer struct {
*corerbd.ControllerServer
}
// NewReplicationServer creates a new ReplicationServer which handles
// the Replication Service requests from the CSI-Addons specification.
func NewReplicationServer(c *corerbd.ControllerServer) *ReplicationServer {
return &ReplicationServer{ControllerServer: c}
}
func (rs *ReplicationServer) RegisterService(server grpc.ServiceRegistrar) {
replication.RegisterControllerServer(server, rs)
}