Skip to content

Commit

Permalink
Migrated leader election to lease API
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilSharmaWe committed Feb 3, 2022
1 parent a35bec6 commit e1ea7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ func (ctrl *ProvisionController) Run(ctx context.Context) {
go ctrl.volumeStore.Run(ctx, DefaultThreadiness)

if ctrl.leaderElection {
rl, err := resourcelock.New("endpoints",
rl, err := resourcelock.New("endpointsleases",
ctrl.leaderElectionNamespace,
strings.Replace(ctrl.provisionerName, "/", "-", -1),
ctrl.client.CoreV1(),
Expand Down

0 comments on commit e1ea7ac

Please sign in to comment.