mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-21 13:50:20 +00:00
rbd: register GET_CLIENTS_TO_FENCE caps
register Capability_NetworkFence_ GET_CLIENTS_TO_FENCE capability and start a NetworkFence controllers as part of rbd nodeplugin. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
34dfd0adb8
commit
fdc74973d8
@ -152,6 +152,13 @@ func (is *IdentityServer) GetCapabilities(
|
||||
Type: identity.Capability_EncryptionKeyRotation_ENCRYPTIONKEYROTATION,
|
||||
},
|
||||
},
|
||||
},
|
||||
&identity.Capability{
|
||||
Type: &identity.Capability_NetworkFence_{
|
||||
NetworkFence: &identity.Capability_NetworkFence{
|
||||
Type: identity.Capability_NetworkFence_GET_CLIENTS_TO_FENCE,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -227,6 +227,9 @@ func (r *Driver) setupCSIAddonsServer(conf *util.Config) error {
|
||||
}
|
||||
|
||||
if conf.IsNodeServer {
|
||||
fcs := casrbd.NewFenceControllerServer()
|
||||
r.cas.RegisterService(fcs)
|
||||
|
||||
rs := casrbd.NewReclaimSpaceNodeServer(r.ns.VolumeLocks)
|
||||
r.cas.RegisterService(rs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user