mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 02:10:21 +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)
|
is := casceph.NewIdentityServer(conf)
|
||||||
fs.cas.RegisterService(is)
|
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
|
// start the server, this does not block, it runs a new go-routine
|
||||||
err = fs.cas.Start()
|
err = fs.cas.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -20,9 +20,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
|
|
||||||
"github.com/csi-addons/spec/lib/go/fence"
|
"github.com/csi-addons/spec/lib/go/fence"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestFenceClusterNetwork is a minimal test for the FenceClusterNetwork()
|
// TestFenceClusterNetwork is a minimal test for the FenceClusterNetwork()
|
||||||
|
Loading…
Reference in New Issue
Block a user