Skip to content

Commit

Permalink
Use configmapsleases for leader election
Browse files Browse the repository at this point in the history
  • Loading branch information
thbkrkr committed May 12, 2022
1 parent 2cb6e54 commit 06360dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ func startOperator(ctx context.Context) error {
Scheme: clientgoscheme.Scheme,
CertDir: viper.GetString(operator.WebhookCertDirFlag),
LeaderElection: viper.GetBool(operator.EnableLeaderElection),
LeaderElectionResourceLock: resourcelock.ConfigMapsResourceLock, // TODO: Revert to ConfigMapsLeases when support for 1.13 is dropped
LeaderElectionResourceLock: resourcelock.ConfigMapsLeasesResourceLock, // TODO: use 'lease' after operator is released with 'configmapsleases'
LeaderElectionID: LeaderElectionConfigMapName,
LeaderElectionNamespace: operatorNamespace,
Logger: log.WithName("eck-operator"),
Expand Down

0 comments on commit 06360dd

Please sign in to comment.