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
Wrap InterPodAffinity predicate metadata as a Prefilter #86175
Conversation
01d2de8
to
ef8abf0
Compare
/priority important-soon |
c7ef56f
to
12d20bc
Compare
/cc @alculquicondor |
[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 |
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 @ahg-g ! Just some nits, otherwise LGTM.
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
b590d12
to
d70f266
Compare
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
d70f266
to
8046c71
Compare
/retest |
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
@ahg-g commits are good to be squashed. |
8046c71
to
29e8c57
Compare
/hold I'm finish up my review soon 😅 |
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
}, | ||
} | ||
|
||
if !reflect.DeepEqual(source.Clone(), source) { |
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.
prefer cmp.Equal.
Maybe we should also check that they are different objects.
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.
can't now because we are comparing unexported members.
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.
True...
Maybe we should also check that they are different objects
Still holds
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.
pkg/scheduler/framework/plugins/interpodaffinity/interpod_affinity.go
Outdated
Show resolved
Hide resolved
29e8c57
to
b2f254a
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.
/hold
I'm finish up my review soon
thanks, I replied
062b775
to
2fdf1fa
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
/hold cancel
What type of PR is this?
/kind feature
What this PR does / why we need it:
Wraps Inter-pod affinity predicate metadata as a PreFilter. Actually moving the code will be done after the predicate itself is moved as a Filter.
Which issue(s) this PR fixes:
Part of #85926
Does this PR introduce a user-facing change?:
/cc @Huang-Wei