mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-24 23:30:20 +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:
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 {
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user