-
Notifications
You must be signed in to change notification settings - Fork 350
Handle request value with zero in CountIn #4971
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
Handle request value with zero in CountIn #4971
Conversation
Welcome @qti-haeyoon! |
Hi @qti-haeyoon. 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 canceled.
|
/ok-to-test |
82eda63
to
4c2c60b
Compare
4c2c60b
to
429589a
Compare
/retest |
Thanks for the review @mimowo . I added a simple test case in 429589a. Please let me know if there are more cases to add. |
Please also extend the release note to mention TAS. My proposal would be TAS: Fix bug where scheduling panics when the workload using TopologyAwareScheduling has container request value specified as zero. |
Sounds good, updated as suggested. |
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.
Thank you!
/lgtm
/approve
/cherry-pick release-0.11 release-0.10
Out of curiosity, do you have a legitimate use case for using requests equal 0? In any case Kueue should handle it gracefully and not panic.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mimowo, qti-haeyoon 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 |
LGTM label has been added. Git tree hash: 34cda3ea476c90c083d957ada3b5704d11d36f94
|
One use case I can describe would be when we have a template that generate a workload based on request which can be parameterized and sometimes we want to use value 0. Maybe not very realistic for CPU or memory, but for other kind of resources such as GPU. |
Makes perfect sense. Thank you for describing the use case and the contribution. |
/cherry-pick release-0.11 release-0.10 |
@mimowo: new pull request created: #4973 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. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
When resource request value is zero, it should be handled appropriately to count correctly.
Which issue(s) this PR fixes:
Fixes #4970
Special notes for your reviewer:
Does this PR introduce a user-facing change?