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

Handle restart attempts in static pod manifest checks #4784

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

brandond
Copy link
Member

@brandond brandond commented Sep 22, 2023

Proposed Changes

Fixes issue where pod restart attempts may obscure currently running pods from being found.

This switches to using upstream functions to determine the current pod sandbox, to ensure that rke2 is in sync with the kubelet.

Types of Changes

bugfix

Verification

See linked issue

Testing

Linked Issues

User-Facing Change

Fixed an issue where static pod startup checks may return false positives in the case of pod restarts

Further Comments

@brandond brandond marked this pull request as ready for review September 22, 2023 19:59
@brandond brandond requested a review from a team as a code owner September 22, 2023 19:59
Copy link
Contributor

@matttrach matttrach left a comment

Choose a reason for hiding this comment

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

lgtm

@brandond brandond force-pushed the fix-pod-restart-attempts branch from 442f939 to f917686 Compare September 25, 2023 18:20
@brandond brandond requested review from matttrach, dereknola and a team September 25, 2023 18:35
@brandond
Copy link
Member Author

Changed to using upstream runtimeutil.PodSandboxChanged to determine the current pod sandbox, instead of maintaining duplicate logic here.

Have requested re-review.

@brandond brandond force-pushed the fix-pod-restart-attempts branch 4 times, most recently from eb017bd to cac3d2b Compare September 26, 2023 07:42
Fixes issue where pod sandbox changes may prevent running pods from being found.

Signed-off-by: Brad Davidson <[email protected]>
@brandond brandond force-pushed the fix-pod-restart-attempts branch from cac3d2b to 481ccf7 Compare September 26, 2023 17:50
@brandond brandond merged commit db9d1e9 into rancher:master Sep 27, 2023
1 check passed
@brandond brandond deleted the fix-pod-restart-attempts branch June 6, 2024 23:11
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.

5 participants