-
Notifications
You must be signed in to change notification settings - Fork 292
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
Refactor FlavorAssigner #3536
Refactor FlavorAssigner #3536
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
8e5bdb9
to
e92da7a
Compare
/lgtm |
LGTM label has been added. Git tree hash: 3e562b8b4122a6b4751d3fd2e33429fa2c28ae3b
|
thanks for the review! |
} | ||
status.append(msg) | ||
|
||
status.append(fmt.Sprintf("insufficient unused quota for %s in flavor %s, %s more needed", |
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.
Do we want to set this message even if val <= rQuota.Nominal
?
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.
We did this (a similar message) before, and I think the message is still relevant/accurate - other quota is being used
@@ -1660,7 +1659,7 @@ func TestAssignFlavors(t *testing.T) { | |||
{ | |||
Name: "main", | |||
Status: &Status{ | |||
reasons: []string{"insufficient unused quota in cohort for cpu in flavor one, 11 more needed"}, | |||
reasons: []string{"insufficient quota for cpu in flavor one, request > maximum capacity (12 > 11)"}, |
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 actually showing the message is fixed
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
We will be cherry-picking this one probably too.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gabesaba, 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 |
/release-note-edit
proposal |
/kind bug |
/cherry-pick release-0.9 |
@mimowo: new pull request created: #3549 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.8 |
@mimowo: #3536 failed to apply on top of branch "release-0.8":
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 cleanup
What this PR does / why we need it:
Simplifies FlavorAssigner in preparation for #3405
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?