-
Notifications
You must be signed in to change notification settings - Fork 39.7k
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
scheduler: Extend ExtenderFilterResult to include UnschedulableAndUnresolvable nodes #92866
Conversation
/priority backlog |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
@cofyc As this PR also needs API review, and unfortunately tomorrow is the code freeze for 1.19. Per the original plan (targeting 1.20) in KEP, would you mind holding the review until 1.20? |
sure |
/retest |
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.
@soulxu thanks! PTAL
/retest |
/test pull-kubernetes-e2e-kind-ipv6 |
@Huang-Wei can you take a look recently? |
This also needs api reviews. @kubernetes/api-reviewers Can any API expert take a review? Thanks. |
pkg/scheduler/core/extender.go
Outdated
@@ -287,7 +289,7 @@ func (h *HTTPExtender) Filter( | |||
} | |||
|
|||
if h.filterVerb == "" { | |||
return nodes, extenderv1.FailedNodesMap{}, nil | |||
return nodes, nil, nil, nil |
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.
I'm wondering this would break when loop the failedNodesMap in "genernicSchduler.findNodesThatPassExtenders", since we loop on a nil
for failedNodeName, failedMsg := range failedMap { |
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.
Thanks! Fixed.
/retest |
/lgtm |
/cc @liggitt |
/cc @liggitt |
We know that this API doesn't respect openAPI and there is an open issue to fix this in a v2: #88634 This API is used to format messages between scheduler and an external extender. As it stands today, api-change lgtm. |
conflicts in bazel files are resolved |
/retest |
Kindly ping @liggitt for approval. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cofyc, Huang-Wei, liggitt 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 |
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #91281
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: