Skip to content
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

Slim down Node handler interface #25450

Merged
merged 3 commits into from
May 24, 2023

Conversation

bimmlerd
Copy link
Member

@bimmlerd bimmlerd commented May 15, 2023

Review commit by commit, though changes shouldn't be too large

I was looking into NodeHandler for a related PR, and noticed that one has to stub out quite a few methods to implement the interface, even if the code is just interested in getting notifed on Node{Add,Update,Delete}. That seemed suboptimal, so this series splits the NodeHandler interface in three more focussed interfaces. Purely cosmetic change, no (intentional) functional changes.

A next step might be to look into breaking up the linuxNodeHandler, but that's stuff for another PR.

cc @gandro

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label May 15, 2023
@bimmlerd bimmlerd added release-note/misc This PR makes changes that have no direct user impact. and removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels May 15, 2023
@bimmlerd bimmlerd force-pushed the pr/bimmlerd/node-handler-diet branch from 475cba0 to 440cb74 Compare May 15, 2023 14:02
@bimmlerd bimmlerd marked this pull request as ready for review May 15, 2023 14:40
@bimmlerd bimmlerd requested review from a team as code owners May 15, 2023 14:40
Copy link
Contributor

@chancez chancez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on hubble side. I've been wanting to fix this for a while myself, especially since I've seen a lot more methods added to it recently! Thanks a ton.

Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking care of this! 🙏 🚀

@christarazi
Copy link
Member

/test

Copy link
Member

@christarazi christarazi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup! 🧹

@bimmlerd bimmlerd self-assigned this May 17, 2023
@bimmlerd bimmlerd force-pushed the pr/bimmlerd/node-handler-diet branch from 440cb74 to 28b58b6 Compare May 19, 2023 12:55
@bimmlerd
Copy link
Member Author

Rebased as this picked up a conflict with upstream.

@bimmlerd
Copy link
Member Author

/test

@christarazi christarazi added kind/cleanup This includes no functional changes. area/daemon Impacts operation of the Cilium daemon. labels May 22, 2023
Copy link
Contributor

@thorn3r thorn3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work! ➕

@sayboras sayboras added the needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch label Jun 2, 2023
@bimmlerd bimmlerd added backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. and removed needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Jun 6, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from main to Backport pending to v1.12 in 1.12.10 Jun 6, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from main to Backport pending to v1.11 in 1.11.18 Jun 6, 2023
@michi-covalent michi-covalent added backport-done/1.12 The backport for Cilium 1.12.x for this PR is done. and removed backport-pending/1.12 labels Jun 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.12 to Backport done to v1.12 in 1.12.10 Jun 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.12 to Backport done to v1.12 in 1.12.10 Jun 14, 2023
@michi-covalent michi-covalent added backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. and removed backport-pending/1.11 labels Jun 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.11 to Backport done to v1.11 in 1.11.18 Jun 14, 2023
@julianwiedmann julianwiedmann added backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. and removed backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. labels Jul 10, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.13 to Backport done to v1.13 in 1.13.3 Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/daemon Impacts operation of the Cilium daemon. backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. backport-done/1.12 The backport for Cilium 1.12.x for this PR is done. backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. kind/cleanup This includes no functional changes. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
No open projects
1.11.18
Backport done to v1.11
1.12.10
Backport done to v1.12
1.13.3
Backport done to v1.13
Development

Successfully merging this pull request may close these issues.

None yet

10 participants