-
Notifications
You must be signed in to change notification settings - Fork 262
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
reset admission check after deactivation #3350
reset admission check after deactivation #3350
Conversation
Welcome @KPostOffice! |
Hi @KPostOffice. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
✅ Deploy Preview for kubernetes-sigs-kueue ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/ok-to-test |
4db1187
to
6f7c974
Compare
cc @PBundyra |
@KPostOffice PTAL at the failures, maybe we could include as bugfix in 0.9. |
6f7c974
to
f279f18
Compare
dc8bc5a
to
a559886
Compare
cc @PBundyra for a review pass. It seems the failing integration tests are for BookingExpired. 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.
Could you add a scenario for deactivated test, to observe transition from DeactivationTarget
-> EvictedByDeactivation
and resetting Workload's AdmissionChecks and RequeueState
pkg/workload/admissionchecks.go
Outdated
checks[i] = kueue.AdmissionCheckState{ | ||
Name: checks[i].Name, | ||
State: kueue.CheckStatePending, | ||
LastTransitionTime: metav1.NewTime(time.Now()), |
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.
Could we use a clock used in WorkloadController?
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
5e0eef5
to
8043dba
Compare
/lgtm |
LGTM label has been added. Git tree hash: f67d95d9c2f4924e2ab70e39f87c976a66e5ee98
|
/release-note-edit
|
/approve |
@mimowo: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: KPostOffice, mimowo 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 |
@mimowo: cannot checkout 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-sigs/prow repository. |
/cherry-pick release-0.9 |
@mimowo: #3350 failed to apply on top of branch "release-0.9":
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-sigs/prow repository. |
@KPostOffice can you work on preparing the cherry-pick? |
…ion (#3518) * reset admission check after deactivation Signed-off-by: Kevin <[email protected]> * adjust unit tests Signed-off-by: Kevin <[email protected]> * use deactivation as prefix Signed-off-by: Kevin <[email protected]> * use realClock in admissionCheck package Signed-off-by: Kevin <[email protected]> * remove rejected check because it's transitory Signed-off-by: Kevin <[email protected]> * swap order to avoid short circuit Signed-off-by: Kevin <[email protected]> * dont duplicate eviction function Signed-off-by: Kevin <[email protected]> * address comments Signed-off-by: Kevin <[email protected]> * add unit test for admission check reset Signed-off-by: Kevin <[email protected]> * adjust test description to reflect transitory nature Signed-off-by: Kevin <[email protected]> * use reconcilers clock for all func calls Signed-off-by: Kevin <[email protected]> --------- Signed-off-by: Kevin <[email protected]>
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #3346
Fixes #3331
Special notes for your reviewer:
Does this PR introduce a user-facing change?
NONE