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
update statefulset pod when it is not running and has ErrImagePullBackOff error #89801
update statefulset pod when it is not running and has ErrImagePullBackOff error #89801
Conversation
Hi @chenkaiyue. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/assign @soltysh |
@@ -219,6 +219,10 @@ func isTerminating(pod *v1.Pod) bool { | |||
return pod.DeletionTimestamp != nil | |||
} | |||
|
|||
// isPending returns true if pod has a Phase of PodPending | |||
func isPending(pod *v1.Pod) bool{ | |||
return pod.Status.Phase != v1.PodPending |
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.
The func name is isPending
and the check is pod.Status.Phase != v1.PodPending
. Is it expected?
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.
My fault, i have corrected it, THX!
73817bd
to
e4d8e9c
Compare
@mortent @krmayankk Can you help review this pr? |
@soltysh Can you help review this pr? |
/kind bug |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I encountered the same problem and hope to fix it soon. |
/ok-to-test |
@chenkaiyue ci failed. |
@chenkaiyue can you update your PR? |
ok |
e4d8e9c
to
ae77366
Compare
c6703fb
to
92250c3
Compare
92250c3
to
8691dd2
Compare
@soltysh Hi, I have updated the PR, and the CI is ok, can you help review? |
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.
One more nit and you're good to go
/approve
@@ -17,6 +17,7 @@ limitations under the License. | |||
package statefulset | |||
|
|||
import ( | |||
"k8s.io/kubernetes/pkg/kubelet/images" |
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.
Import order: golang stdlib, 3rd party, k8s imports
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.
Import order: golang stdlib, 3rd party, k8s imports
Thx~, I have fixed it.
c8ff342
to
e402042
Compare
@mortent @krmayankk Can you help review? |
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.
/approve cancel
/hold
None of our controllers uses that much of insights into pod lifecycle. I think it would be good to have a broader discussion within sig-apps how to approach pod failures due to image pulls and alike in the controllers. I've added this topic for next sig-apps call on Nov 2nd.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: chenkaiyue The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closed this PR. In response to this:
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. |
What type of PR is this?
What this PR does / why we need it:
update statefulset pod when it is not running and has ErrImagePullBackOff error
Which issue(s) this PR fixes:
Fixes #88896
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: