Skip to content

debuginfo: move debuginfo api handler from daemon to pkg/debug/api #39357

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 2 commits into from
May 8, 2025

Conversation

mhofstetter
Copy link
Member

@mhofstetter mhofstetter commented May 6, 2025

This PR moves the debuginfo api handler from the daemon to a new Hive Cell in pkg/debug/api.

As this was the last api handler that was implemented by the Daemon, we can delete the apihandler "integration logic" completely from the daemon 🎉

Potential follow up: Implement debuginfo registration mechanism with Hive Value Groups

@mhofstetter mhofstetter added kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact. area/modularization Relates to code modularization and maintenance. labels May 6, 2025
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/modularize-debug branch from 234eb64 to 0640412 Compare May 6, 2025 08:57
@mhofstetter
Copy link
Member Author

mhofstetter commented May 6, 2025

/test

-> removing dependencies led to a slight rearrange of the agent initialization order which made a ratelimit map init race visible. This issue should be fixed with: #39361

@mhofstetter mhofstetter force-pushed the pr/mhofstetter/modularize-debug branch from 0640412 to 2bf72dd Compare May 7, 2025 08:38
@mhofstetter mhofstetter added the dont-merge/blocked Another PR must be merged before this one. label May 7, 2025
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/modularize-debug branch from 2bf72dd to 835ae86 Compare May 7, 2025 14:14
@mhofstetter mhofstetter removed the dont-merge/blocked Another PR must be merged before this one. label May 7, 2025
@mhofstetter
Copy link
Member Author

/test

This commit moves the debuginfo api handler from the daemon to a new
Hive Cell in `pkg/debug/api`.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
There are no more Cilium API handlers that are served by the
`Daemon`. Therefore, this commit removes `daemon/cmd/api_handlers.go`
completely

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/modularize-debug branch from 835ae86 to b1ec8f5 Compare May 8, 2025 06:16
@mhofstetter
Copy link
Member Author

mhofstetter commented May 8, 2025

/test

ci-ginkgo failed once with #38463

@mhofstetter mhofstetter marked this pull request as ready for review May 8, 2025 07:05
@mhofstetter mhofstetter requested review from a team as code owners May 8, 2025 07:05
@mhofstetter mhofstetter requested a review from bimmlerd May 8, 2025 07:05
Copy link
Member

@bimmlerd bimmlerd left a comment

Choose a reason for hiding this comment

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

nice!

@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 May 8, 2025
@tklauser tklauser enabled auto-merge May 8, 2025 07:26
@tklauser tklauser added this pull request to the merge queue May 8, 2025
Merged via the queue into cilium:main with commit d38d256 May 8, 2025
72 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/modularize-debug branch May 8, 2025 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/modularization Relates to code modularization and maintenance. 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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants