cephfs: expose FenceControllerServer in driver.go to handle the requests

Signed-off-by: Riya Singhal <rsinghal@redhat.com>
This commit is contained in:
Riya Singhal
2023-10-05 21:01:58 +05:30
committed by mergify[bot]
parent 74dfb7b913
commit 1fc9678342
2 changed files with 6 additions and 2 deletions

View File

@ -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 {