Skip to content

Slim down Node handler interface #25450

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

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! ➕

@michi-covalent michi-covalent added backport-done/1.12 The backport for Cilium 1.12.x for this PR is done. backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. and removed backport-pending/1.12 labels 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 labels Jul 10, 2023
mhofstetter added a commit to mhofstetter/cilium that referenced this pull request Dec 3, 2024
This commit removes unnecessary no-op functions from the
`clusterNodesClient` in the nodemanager rest api handler.

Related to cilium#25450 (that slimmed down the `NodeHandler` interface)

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
borkmann pushed a commit that referenced this pull request Dec 3, 2024
This commit removes unnecessary no-op functions from the
`clusterNodesClient` in the nodemanager rest api handler.

Related to #25450 (that slimmed down the `NodeHandler` interface)

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
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
Status: Released
Development

Successfully merging this pull request may close these issues.

10 participants