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
Allow stoping admission from a specific LocalQueue. #2173
base: main
Are you sure you want to change the base?
Allow stoping admission from a specific LocalQueue. #2173
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mbobrovskyi 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 |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/assign |
0c028a8
to
8532514
Compare
/ok-to-test |
fc9a019
to
ad65c6f
Compare
/assign @trasc |
ad65c6f
to
6efdcff
Compare
6efdcff
to
900d6b7
Compare
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.
A couple more comments. otherwise LGTM overall
900d6b7
to
378daa9
Compare
/lgtm |
LGTM label has been added. Git tree hash: a53233261ab10920026cf68fe39460dbfe419ccd
|
/cc @mwielgus |
/assign @alculquicondor |
} | ||
|
||
r.queues.DeleteLocalQueue(oldLq) | ||
r.cache.DeleteLocalQueue(oldLq) |
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.
Doesn't this immediately release the quota for all the workloads in this localqueue? Even if stopPolicy == Hold
?
} else { | ||
queue.Status.PendingWorkloads = 0 | ||
queue.Status.ReservingWorkloads = 0 | ||
queue.Status.AdmittedWorkloads = 0 |
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.
This is not accurate. If the policy is just Hold, we still need to track what is still running.
/hold Let's not merge this until we have released 0.7 Please work on other commands for now. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
To allow stoping admission from a specific LocalQueue.
Which issue(s) this PR fixes:
Fixes #2109
Special notes for your reviewer:
Does this PR introduce a user-facing change?