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
IPAM multipool followups #26138
IPAM multipool followups #26138
Conversation
030c165
to
f3dd593
Compare
f3dd593
to
3095ce1
Compare
/test |
3095ce1
to
2cb4d05
Compare
/test Job 'Cilium-PR-K8s-1.26-kernel-net-next' hit: #25958 (92.28% similarity) |
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.
🧹
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.
🎩
/test-1.26-net-next |
2cb4d05
to
fcfa2a5
Compare
Rebased to pull in fixes for the failing kafka tests (#26009) |
/test |
NodeEventHandler.Create already calls NodeEventHandler.Update in all existing implementations. Thus, remove the Create method and rename Update to Upsert which more clearly describes its purpose. Also remove the unused (*Node).Update method instead of converting it to call NodeEventHandler.Upsert. It's never called anywhere and not needed to satisfy an interface. Signed-off-by: Tobias Klauser <tobias@cilium.io>
Only nits! I like how you 🧹 and simplified the code! 👏🏽 |
Signed-off-by: Tobias Klauser <tobias@cilium.io>
ip.PrefixToIPNet implements the same functionality as the netipx.PrefixIPNet function in the go4.org/netipx dependency that is already vendored. Use it instead of maintaining our own copy. Signed-off-by: Tobias Klauser <tobias@cilium.io>
In (*PoolAllocator).updateCIDRSets the CIDRs are currently parsed twice, once using netip.ParsePrefix and once using net.ParseCIDR. Avoid this and pass the CIDRs as []netip.Prefix and at the same time also convert downstream functions in ipam/cidrset to take a netip.Prefix instead of *net.IPNet. Ref. cilium#25824 (comment) Ref. cilium#25991 (comment) Signed-off-by: Tobias Klauser <tobias@cilium.io>
fcfa2a5
to
250e80c
Compare
/test |
Address various review comments and possible cleanups from the IPAM multipool PRs #22762 #25824 and #25991.
Review per commit.