Skip to content

Commit

Permalink
Merge pull request #1750 from songrx1997/migrateLeaseResourceLock
Browse files Browse the repository at this point in the history
Migrate gce-ingress to LeasesResourceLock from ConfigMapsLeases
  • Loading branch information
k8s-ci-robot authored Aug 12, 2022
2 parents 099c1e3 + cc3db0f commit d74c0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/glbc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,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(),
Expand Down

0 comments on commit d74c0a6

Please sign in to comment.