-
Notifications
You must be signed in to change notification settings - Fork 451
don't update PodsReady condition timely #7364
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: olderTaoist 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 |
|
Welcome @olderTaoist! |
|
Hi @olderTaoist. Thanks for your PR. I'm waiting for a github.com 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-sigs/prow repository. |
|
/ok-to-test |
|
Thank you for the fix, lgtm, but can you think of adding a test for it? |
|
Please also update the "Does this PR introduce a user-facing change?" section to describe the fix. It will land in release notes for users. |
8163217 to
1dc0d4b
Compare
|
cc @PBundyra ptal |
let me think about how to write a single test. I also accidentally discovered that in our k8s environment, accessing the webhook through the service (kube-proxy) failed probabilistically, resulting in the PodReady status not being updated timely and subsequent tasks being unable to be scheduled. |
| return ctrl.Result{ | ||
| RequeueAfter: 0, | ||
| }, err |
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.
| return ctrl.Result{ | |
| RequeueAfter: 0, | |
| }, err | |
| return ctrl.Result{}, client.IgnoreNotFound(err) |
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.
Done as you saied. because my use case is that when a job's podready status is false (no timeout), it will block all subsequent jobs, i wanted the Reconciler to reconcile immediately, so I didn't use the default behavior of controller-runtime.
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.
IIUC, the return ctrl.Result{}, client.IgnoreNotFound(err) will make reconciler requeue the request right away. Am I missing something?
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.
when Reconcile return error, controller-runtime default retry mechanism uses a rate limiter.
ca84499 to
c1824fb
Compare
Done |
e9641cd to
a7e377c
Compare
a7e377c to
0f65963
Compare
0f65963 to
be6237d
Compare
be6237d to
0377f03
Compare
|
|
0377f03 to
cb438cf
Compare
cb438cf to
a8bc697
Compare
a8bc697 to
be888bd
Compare
What type of PR is this?
/kind bug
What this PR does / why we need it:
JobReconciler don't update PodsReady condition timely when updata status failed. no event triggers reconcile, need manually trigger the workload update.
Which issue(s) this PR fixes:
Fixes #7363
Special notes for your reviewer:
Does this PR introduce a user-facing change?