-
Notifications
You must be signed in to change notification settings - Fork 38.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
Implements NamespaceSelector for pod affinity #98446
Conversation
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. |
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 a long PR. I will take a rest and come back :)
pkg/scheduler/framework/plugins/interpodaffinity/filtering_test.go
Outdated
Show resolved
Hide resolved
/triage accepted |
pkg/scheduler/framework/plugins/interpodaffinity/scoring_test.go
Outdated
Show resolved
Hide resolved
@alculquicondor @Huang-Wei @damemi I tested the struct pattern for passing feature gates in this PR, I like it better than the With option. PTAL (sorry, it is half merged into the second commit :(). |
I like it. It saves a few lines of code vs With. |
Yeah, I think it is makes it easier to track features as well. Also, with the type being defined in a separate pkg under |
WithXYZ() pattern functions better at making incremental changes without obtaining the original options object. While here you're building the Option all at once, so looks good to me. |
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.
Good to squash from my POV
97cdd8e
to
bfde6ce
Compare
@ahg-g: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g 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 |
/remove-sig api-machinery |
/remove-kind api-change |
/lgtm |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Implements NamespaceSelector for pod affinity.
Which issue(s) this PR fixes:
Part of #97203
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: