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
Automated cherry pick of #123323: Validate restartable init container state transition #123709
Automated cherry pick of #123323: Validate restartable init container state transition #123709
Conversation
This allows the state of restartable init containers to be transitioned from terminated to non-terminated even for pods with RestartPolicyNever or RestartPolicyOnFailure.
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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/test-infra repository. |
/cc @SergeyKanzhelev |
/kind bug |
This is a quite critical bug as kubernetes cannot update the crashed sidecar container's states of Job without this. |
Thanks! /lgtm |
LGTM label has been added. Git tree hash: 8f0f824bcecd2c5afb255b56b87c50ad997c26f0
|
/cc kubernetes/release-managers |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gjkim42, saschagrunert, thockin 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 |
Without this fix, kubernetes cannot update the sidecar container' statuses from Job once it is terminated.
The sidecar container can continually restart but its container status will be stuck in the first terminated state. It seems like a quite critical bug for me.
This allows the state of restartable init containers to be transitioned from terminated to non-terminated even for pods with RestartPolicyNever or RestartPolicyOnFailure.
Cherry pick of #123323 on release-1.29.
#123323: Validate restartable init container state transition
For details on the cherry pick process, see the cherry pick requests page.