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 {

View File

@ -20,9 +20,8 @@ import (
"context"
"testing"
"github.com/stretchr/testify/assert"
"github.com/csi-addons/spec/lib/go/fence"
"github.com/stretchr/testify/assert"
)
// TestFenceClusterNetwork is a minimal test for the FenceClusterNetwork()