Leader-with-lease behaviour after losing leadership
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
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
@openshift-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen. Mark the issue as fresh by commenting/remove-lifecycle rotten. Exclude this issue from closing again by commenting/lifecycle frozen./close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.