Skip to content

Commit

Permalink
rbd: add NetworkFence operation
Browse files Browse the repository at this point in the history
Signed-off-by: Yug Gupta <[email protected]>
  • Loading branch information
Yuggupta27 committed Jan 4, 2022
1 parent 1b83eb7 commit d7bf858
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/rbd/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ func (r *Driver) setupCSIAddonsServer(conf *util.Config) error {
r.cas.RegisterService(rs)
}

if conf.IsControllerServer {
fcs := casrbd.NewFenceControllerServer()
r.cas.RegisterService(fcs)
}

if conf.IsNodeServer {
rs := casrbd.NewReclaimSpaceNodeServer()
r.cas.RegisterService(rs)
Expand Down

0 comments on commit d7bf858

Please sign in to comment.