-
Notifications
You must be signed in to change notification settings - Fork 767
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
[FIX] BroadcastJob activeDeadlineSeconds did not take effect #1410
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1410 +/- ##
==========================================
- Coverage 47.90% 47.88% -0.02%
==========================================
Files 161 161
Lines 23425 23435 +10
==========================================
+ Hits 11222 11223 +1
- Misses 10989 10995 +6
- Partials 1214 1217 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
pkg/util/handler/enqueue.go
Outdated
"sigs.k8s.io/controller-runtime/pkg/reconcile" | ||
) | ||
|
||
type empty struct{} |
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.
Why must this official function be redefine, and official functions are best left unmodified.
@ls-2018 My local validation is working and this code place jobFailed is true and then it will delete all Pods. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
I simplified the code a little bit. Reconcile all of the Reconcile function can be handled because AdvancedCronJob, BroadcastJob and Job events occur. However, in the case I submitted, I watched three kinds of resources respectively and found that no incident happened. Of course, this probability may be low, but it is not impossible |
What I'm more interested in understanding is how this patch related to the issue? Bug? |
I think it was a bug. |
@ls-2018 You are right, and i think you can refer the implement, https://github.com/openkruise/rollouts/blob/master/pkg/controller/rollout/rollout_controller.go#L167 |
I think I have found the root cause. It is not that the ActiveDeadlineSeconds have not been reconciled after expiration, but that there is no judgment on whether the pod should be removed or not. |
@zmberg Can you look at this request again please? Thanks. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
6f07b39
to
b4524b0
Compare
Signed-off-by: acejilam <[email protected]>
A description of the specific problem is in issue