diff --git a/internal/csi-addons/rbd/identity.go b/internal/csi-addons/rbd/identity.go index 68d7882e6..0e84e9ee0 100644 --- a/internal/csi-addons/rbd/identity.go +++ b/internal/csi-addons/rbd/identity.go @@ -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, + }, + }, }) } diff --git a/internal/rbd/driver/driver.go b/internal/rbd/driver/driver.go index 0ad8109f8..0bf6cfe04 100644 --- a/internal/rbd/driver/driver.go +++ b/internal/rbd/driver/driver.go @@ -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)