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

Modularize kernel modules manager into its own cell #28713

Merged

Conversation

pippolo84
Copy link
Member

@pippolo84 pippolo84 commented Oct 20, 2023

Modularize the kernel modules manager into its own cell.

Instead of exporting an Init() function, the manager stores the list of loaded modules once at startup.

The tests are updated accordingly and since we are at it, migrate them from checkmate (the temporary wrapper for gopkg.in/check.v1) to the standard Go testing framework.

This is a first step needed to modularize the iptables manager.

@pippolo84 pippolo84 added release-note/misc This PR makes changes that have no direct user impact. area/modularization labels Oct 20, 2023
@pippolo84 pippolo84 force-pushed the pr/pippolo84/modules-manager-modularization branch 4 times, most recently from a727ea8 to 6464caa Compare October 20, 2023 16:44
@pippolo84

This comment was marked as outdated.

@pippolo84 pippolo84 force-pushed the pr/pippolo84/modules-manager-modularization branch from 6464caa to 09f6604 Compare October 23, 2023 17:45
@pippolo84
Copy link
Member Author

/test

@pippolo84 pippolo84 marked this pull request as ready for review October 23, 2023 18:00
@pippolo84 pippolo84 requested a review from a team as a code owner October 23, 2023 18:00
Copy link
Member

@YutaroHayakawa YutaroHayakawa left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Oct 24, 2023
Copy link
Contributor

@joamaki joamaki left a comment

Choose a reason for hiding this comment

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

Oops, reviewed this in another PR that depended on this. See comments there: #28746

@maintainer-s-little-helper maintainer-s-little-helper bot removed the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Oct 24, 2023
@pippolo84 pippolo84 force-pushed the pr/pippolo84/modules-manager-modularization branch 2 times, most recently from 8ace98d to 1207e5d Compare October 24, 2023 09:07
@pippolo84 pippolo84 requested a review from a team as a code owner October 24, 2023 09:07
@pippolo84 pippolo84 requested a review from aditighag October 24, 2023 09:07
@pippolo84
Copy link
Member Author

@joamaki I've addressed the feedback regarding modules manager here. PTAL.

@pippolo84 pippolo84 requested a review from joamaki October 24, 2023 09:47
@pippolo84 pippolo84 force-pushed the pr/pippolo84/modules-manager-modularization branch from 1207e5d to 7ab5a00 Compare October 24, 2023 12:06
Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
Modularize the kernel modules manager into its own cell.

Instead of an exported Init() function, the manager stores the list of
loaded modules once at startup.

The tests are updated accordingly and since we are at it, migrate them
from checkmate (the temporary wrapper for gopkg.in/check.v1) to the
standard Go testing framework.

Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
Kernel modules manager is meant to work with Linux kernel modules, so
it belongs to the datapath/linux folder.

CODEOWNERS file is updated accordingly.

Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
@pippolo84 pippolo84 force-pushed the pr/pippolo84/modules-manager-modularization branch from 7ab5a00 to eab1ed7 Compare October 24, 2023 12:07
@pippolo84 pippolo84 requested a review from joamaki October 24, 2023 12:16
@pippolo84
Copy link
Member Author

/test

@pippolo84
Copy link
Member Author

ci-clustermesh failure tracked here, rerunning

@pippolo84
Copy link
Member Author

@aditighag ping 🙏

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Oct 31, 2023
@aditighag aditighag merged commit 1628e80 into cilium:main Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/modularization 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
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants