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

Leader-with-lease behaviour after losing leadership #6915

Open
kozjan opened this issue Mar 14, 2025 · 0 comments
Open

Leader-with-lease behaviour after losing leadership #6915

kozjan opened this issue Mar 14, 2025 · 0 comments
Labels
kind/documentation Categorizes issue or PR as related to documentation.

Comments

@kozjan
Copy link

kozjan commented Mar 14, 2025

What is the URL of the document?

https://sdk.operatorframework.io/docs/building-operators/golang/advanced-topics/#leader-election

Which section(s) is the issue in?

Leader election

What needs fixing?

It would be nice to have more details about how Leader-with-lease implementation is working.
In the code I can see, that the manager has an Elected() method to return a channel, which being closed means that this specific manager is a leader.
I wonder, if the manager loses leadership, what happens to him? Channel cannot be reopened, I can't find where a new one could be created. Is this manager going to be removed from the cluster and replaced with a new one?

Additional context

@kozjan kozjan added the kind/documentation Categorizes issue or PR as related to documentation. label Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
Development

No branches or pull requests

1 participant