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
test to catch illegal nodeNames returned by PreFilterResult #124539
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Huang-Wei 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 |
cc @alculquicondor @sanposhiho Backporting-wise, we may manually carve out of PR w/ this test along with extracting a minimum fix from #119779. Once we have a minimum portable PR, for in-tree plugins, it's needed for [1.27, 1.29]; for out-of-tree plugins, [version PreFilterResult was introduced, 1.29]. |
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, small nit only
@@ -80,6 +81,7 @@ type PreFilterPlugin struct { | |||
numPreFilterCalled int | |||
failPreFilter bool | |||
rejectPreFilter bool | |||
injectNodeNames sets.Set[string] |
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.
nit: It's a bit hard to tell what it is from the name.
I guess, either rename it to preFilterResultNodes
or, at least, add a comment on this field.
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.
done.
69531b8
to
d382150
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.
/lgtm
LGTM label has been added. Git tree hash: 1379f04d4d41a583c4ff9be8d0cde10b61591768
|
What type of PR is this?
/kind cleanup
/sig scheduling
What this PR does / why we need it:
A minimum test to reproduce #123465, but in a general way.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Why the fix doesn't exist in this PR is b/c the fix exists as a by-product of #119779. Backporting-wise, we may manually carve out of PR w/ this test along with extracting a minimum fix from #119779
Does this PR introduce a user-facing change?