-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix kubePlay to actually wait on serviceContainer #17595
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
Conversation
@vrothberg PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: umohnani8, vrothberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
If a service container was created for a pod, kube play was no longer waiting on it to exit before returning. Looks like this was introduced by containers#17469. Kube play --wait will add tests that will help test this. Just want to fix this before anything is really affected. [NO NEW TESTS NEEDED] Signed-off-by: Urvashi Mohnani <[email protected]>
LGTM |
@vrothberg looks like this patch is causing the service container to not be the main PID - I am not seeing how moving the wait out of the default case is causing this though. |
The PR isn't correct yet as it's waiting for the service container unconditionally. Sorry for not catching that during review. So we have two conditions where we need to wait:
To meet 1) we could add a new field to |
Got it, I have included the fix in the play --wait PR then https://github.com/containers/podman/pull/16717/files#diff-d3fb054de60fb7550ae0554fc1c99ac63b8434f960b49b5b7f0352f1d0fcb8f0R364. Closing this PR. |
If a service container was created for a pod, kube play was no longer waiting on it to exit before returning. Looks like this was introduced by #17469.
Kube play --wait will add tests that will help test this. Just want to fix this before anything is really affected.
[NO NEW TEST NEEDED]
Does this PR introduce a user-facing change?