mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
rbd: add NetworkFence operation
Signed-off-by: Yug Gupta <yuggupta27@gmail.com>
This commit is contained in:
parent
fa5866deec
commit
9d34809425
@ -82,6 +82,12 @@ func (is *IdentityServer) GetCapabilities(
|
||||
Type: identity.Capability_ReclaimSpace_OFFLINE,
|
||||
},
|
||||
},
|
||||
}, &identity.Capability{
|
||||
Type: &identity.Capability_NetworkFence_{
|
||||
NetworkFence: &identity.Capability_NetworkFence{
|
||||
Type: identity.Capability_NetworkFence_NETWORK_FENCE,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -216,6 +216,9 @@ func (r *Driver) setupCSIAddonsServer(conf *util.Config) error {
|
||||
if conf.IsControllerServer {
|
||||
rs := casrbd.NewReclaimSpaceControllerServer()
|
||||
r.cas.RegisterService(rs)
|
||||
|
||||
fcs := casrbd.NewFenceControllerServer()
|
||||
r.cas.RegisterService(fcs)
|
||||
}
|
||||
|
||||
if conf.IsNodeServer {
|
||||
|
Loading…
Reference in New Issue
Block a user