-
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
Add check to skip PodTopologySpread PreFilter if no constraints are specified #117683
Add check to skip PodTopologySpread PreFilter if no constraints are specified #117683
Conversation
Welcome @utam0k! |
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. |
Hi @utam0k. Thanks for your PR. I'm waiting for a kubernetes 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/test-infra repository. |
There may be other places to skip in another PR, |
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.
/ok-to-test
pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go
Outdated
Show resolved
Hide resolved
Please change the release note to something like:
|
b90ef80
to
1b4aa5f
Compare
@sanposhiho Thanks for your review and support🙏 I have updated this PR following what you pointed out. PTAL 👀 |
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.
only several nits
pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go
Outdated
Show resolved
Hide resolved
1b4aa5f
to
9840409
Compare
@sanposhiho I appreciate your kind review 🙏 I have fixed them. PTAL |
@Huang-Wei @sanposhiho I appreciate you pointing it out 🙏 I have made the necessary updates to the PR based on your comments. |
1d86925
to
37c7cd5
Compare
/retest-required |
cc @tosi3k |
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.
/approve
/lgtm |
LGTM label has been added. Git tree hash: 29c4c5389715fa9298fdd175f4e77d7d3366e500
|
/retest |
…pecified This commit adds a check in the PodTopologySpread PreFilter function to return a Skip status if there are no topology spread constraints specified This prevents unnecessary processing and filtering for pods that don't have any topology spread constraints. This change is a part of the work for issue kubernetes#114399. Signed-off-by: utam0k <[email protected]>
37c7cd5
to
d82684e
Compare
@Huang-Wei, I apologize for repeatedly requesting reviews. Could you please take a look whenever you have a moment? Thank you. |
/lgtm |
LGTM label has been added. Git tree hash: eba210f9eeda753b44a403fdd3c2826c56418964
|
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.
/hold cancel
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, sanposhiho, utam0k 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 |
…pecified Cherry-pick of kubernetes#117683 Backport request approved in b/286005251 Change-Id: Ieee7d7e6c50823b71d6e21f6cc2071f81bea7a32
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds a check in the PodTopologySpread PreFilter function to return a Skip status if there are no topology spread constraints specified in the pod spec and no default constraints. This prevents unnecessary processing and filtering for pods that don't have any topology spread constraints.
Which issue(s) this PR fixes:
This change is a part of the work for issue #114399.
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: