mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
cephfs: expose FenceControllerServer in driver.go to handle the requests
Signed-off-by: Riya Singhal <rsinghal@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
74dfb7b913
commit
1fc9678342
@ -197,6 +197,11 @@ func (fs *Driver) setupCSIAddonsServer(conf *util.Config) error {
|
||||
is := casceph.NewIdentityServer(conf)
|
||||
fs.cas.RegisterService(is)
|
||||
|
||||
if conf.IsControllerServer {
|
||||
fcs := casceph.NewFenceControllerServer()
|
||||
fs.cas.RegisterService(fcs)
|
||||
}
|
||||
|
||||
// start the server, this does not block, it runs a new go-routine
|
||||
err = fs.cas.Start()
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user