-
Notifications
You must be signed in to change notification settings - Fork 294
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
Swap admitted condition in the same API call as admission or eviction #654
Swap admitted condition in the same API call as admission or eviction #654
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
Hi @mcariatm. 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/test-infra repository. |
/ok-to-test |
I'm still updating integration tests. |
Message: fmt.Sprintf("Preempted by ClusterQueue %s", target.Obj.Status.Admission.ClusterQueue), | ||
} | ||
} | ||
err := p.applyPreemption(ctx, workload.AdmissionPatch(target.Obj)) |
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.
Here is the beauty of SSA:
You don't need to find the old condition. You can just send a patch that includes the condition and the server would find the old one and replace it.
I like what you are doing: keeping the admission field and changing the controller to just use the condition. This is going to help towards issues like this one #510, where after eviction we need to know what the assigned flavors were. Naturally, a lot of tests will need to change to check for the condition instead of empty admission field. I think you can use ExpectWorkloadsToBePending Line 155 in 17fbec9
|
e8df75d
to
e4adb5f
Compare
/ok-to-test |
/easycla |
/retest |
/milestone v0.3 |
Hi, any progress? New release is blocking on this. |
I'm still struggling with this error when I run the tests. |
1a3e16d
to
f4bc8e1
Compare
/retest |
1 similar comment
/retest |
0bb02b0
to
3622045
Compare
/test pull-kueue-test-integration-main |
1 similar comment
/test pull-kueue-test-integration-main |
when rerunning the test suite, please indicate how many times it has passed already |
Passed 2/3 |
Passed 3/10 |
Passed 4/10 |
Passed 5/10 |
Passed 6/10 |
Passed 7/10 |
Passed 8/10 |
Passed 9/10 |
Passed 10/10 |
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.
/lgtm
/approve
/label tide/merge-method-squash
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, mcariatm 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 |
/retitle Swap admitted condition in the same API call as admission or eviction |
What type of PR is this?
To reduce complexity in the Workload controller and reduce API usage.
What this PR does / why we need it:
Set the Admitted condition value in the same API call that sets .status.admission.
Which issue(s) this PR fixes:
Fixes #603
Special notes for your reviewer: