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
Contributor

@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
Copy link
Contributor 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 <brad.davidson@rancher.com>
@brandond brandond merged commit db9d1e9 into rancher:master Sep 27, 2023
2 checks 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