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

auth: use NodeManager instead of k8s.CiliumNodeResource in auth gc #26592

Merged

Conversation

mhofstetter
Copy link
Member

Auth map garbage collection is using the k8s.CiliumNodeResource to get notified about added and deleted nodes.

This comes with the drawback of not supporting ClusterMesh and introducing an additional k8s watcher for CiliumNodes (as long as the NodeManager is using the legacy k8s watcher).

Therefore, this commit is refactoring the auth map garbage collection to register itself as NodeHandler to the NodeManager to get notified about node events.

Fixes: #25899

Auth map garbage collection is using the k8s.CiliumNodeResource to get
notified about added and deleted nodes.

This comes with the drawback of not supporting ClusterMesh and
introducing an additional k8s watcher for CiliumNodes (as long as the
NodeManager is using the legacy k8s watcher).

Therefore, this commit is refactoring the auth map garbage collection to
register itself as NodeHandler to the NodeManager to get notified about
node events.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter added kind/enhancement This would improve or streamline existing functionality. release-note/misc This PR makes changes that have no direct user impact. area/servicemesh GH issues or PRs regarding servicemesh feature/authentication labels Jul 3, 2023
@mhofstetter mhofstetter requested a review from a team as a code owner July 3, 2023 08:42
@mhofstetter mhofstetter requested a review from meyskens July 3, 2023 08:42
Copy link
Member

@meyskens meyskens left a comment

Choose a reason for hiding this comment

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

LGTM

Even looks cleaner :)

@mhofstetter
Copy link
Member Author

/test

@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 Jul 3, 2023
@mhofstetter mhofstetter removed the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 3, 2023
@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 Jul 3, 2023
@borkmann borkmann merged commit f3f9971 into cilium:main Jul 5, 2023
66 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/auth-nodemanager-events branch July 5, 2023 06:59
@mhofstetter mhofstetter added the needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch label Jul 5, 2023
@joamaki joamaki mentioned this pull request Jul 5, 2023
23 tasks
@joamaki joamaki added backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. and removed needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch labels Jul 5, 2023
@jibi jibi added backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. and removed backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. labels Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/servicemesh GH issues or PRs regarding servicemesh backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. feature/authentication kind/enhancement This would improve or streamline existing functionality. 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.

Auth: Support node based garbage collection in combination with ClusterMesh
5 participants