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

fix(policy): ensure status controller honors leader expiry #13392

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

olix0r
Copy link
Member

@olix0r olix0r commented Nov 25, 2024

The status controller updates its leadership state every time the lease changes. But if the lease expires and does not update for some reason, the contoller incorrectly continues to act as the leader.

This change ensures that the controller checks the lease on each iteration to ensure that it correctly honors the lease contract.

@olix0r olix0r force-pushed the ver/policy-log-noise branch from 712c9bd to 9bd5387 Compare November 25, 2024 16:39
@olix0r olix0r force-pushed the ver/policy-log-leader branch from a6c7071 to 267214f Compare November 25, 2024 16:40
Base automatically changed from ver/policy-log-noise to main November 25, 2024 17:12
The status controller updates its leadership state every time the lease changes.
But if the lease expires and does not update for some reason, the contoller
incorrectly continues to act as the leader.

This change ensures that the controller checks the lease on each iteration
to ensure that it correctly honors the lease contract.
@olix0r olix0r force-pushed the ver/policy-log-leader branch from 267214f to 73d753a Compare November 25, 2024 17:51
@olix0r olix0r marked this pull request as ready for review November 25, 2024 17:52
@olix0r olix0r requested a review from a team as a code owner November 25, 2024 17:52
@olix0r olix0r enabled auto-merge (squash) November 25, 2024 18:14
@olix0r olix0r merged commit c030717 into main Nov 25, 2024
43 checks passed
@olix0r olix0r deleted the ver/policy-log-leader branch November 25, 2024 19:00
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