diff --git a/cmd/glbc/main.go b/cmd/glbc/main.go index 17af41ed1d..6ca45321ec 100644 --- a/cmd/glbc/main.go +++ b/cmd/glbc/main.go @@ -226,7 +226,7 @@ func makeLeaderElectionConfig(ctx *ingctx.ControllerContext, client clientset.In id := fmt.Sprintf("%v_%x", hostname, rand.Intn(1e6)) // TODO(#1590): Migrate to LeasesResourceLock two releases after the // migration to ConfigMapsLeases were done. - rl, err := resourcelock.New(resourcelock.ConfigMapsLeasesResourceLock, + rl, err := resourcelock.New(resourcelock.LeasesResourceLock, flags.F.LeaderElection.LockObjectNamespace, flags.F.LeaderElection.LockObjectName, client.CoreV1(),