Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Conversation

@mhmxs
Copy link
Contributor

@mhmxs mhmxs commented Jun 3, 2022

Increase timeout of leader election.
Removal of legacy multi-lock to lease lock only.
Command-line flag to set renewal seconds.

@mhmxs mhmxs requested a review from a team June 3, 2022 06:24
main.go Outdated
LeaderElection: enableLeaderElection,
LeaderElectionID: "storageos-api-manager-leader",
LeaderElectionNamespace: namespace,
LeaderElectionResourceLock: "leases",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as before:
nit: I believe you can use the constant k8s.io/client-go/tools/leaderelection/resourcelock. LeasesResourceLock

@mhmxs mhmxs merged commit 740a6ac into master Jun 7, 2022
@mhmxs mhmxs deleted the tune-leader-election branch June 7, 2022 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants