Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configure election timeouts #382

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

ChunyiLyu
Copy link
Contributor

Add support so users can configure leader election related timeouts through command flags.

Default lease duration is 15s and renew deadline is 10s. However in certain environments with lots of controller pods it might longer occasionally. Defaults for them stay the same as before, and this PR only adds a way to configure them if users want to.

@ChunyiLyu ChunyiLyu marked this pull request as draft January 25, 2024 14:45
@ChunyiLyu ChunyiLyu force-pushed the election-lease-timeout branch from 210ec39 to abd8ef3 Compare January 25, 2024 14:58
@ChunyiLyu ChunyiLyu marked this pull request as ready for review January 25, 2024 15:58
@nebhale nebhale requested a review from scothis January 29, 2024 16:10
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c5441fa) 77.75% compared to head (abd8ef3) 77.75%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #382   +/-   ##
=======================================
  Coverage   77.75%   77.75%           
=======================================
  Files          19       19           
  Lines        1699     1699           
=======================================
  Hits         1321     1321           
  Misses        305      305           
  Partials       73       73           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nebhale nebhale merged commit 00476d7 into servicebinding:main Jan 30, 2024
12 checks passed
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