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

statedb: extract REST API handler to pkg #26645

Merged

Conversation

bimmlerd
Copy link
Member

@bimmlerd bimmlerd commented Jul 5, 2023

With the newly modularized API server, we can pull out individual handlers into their packages; in this case the statedb Dump handler.

@bimmlerd bimmlerd added kind/cleanup This includes no functional changes. area/daemon Impacts operation of the Cilium daemon. release-note/misc This PR makes changes that have no direct user impact. sig/agent Cilium agent related. area/modularization labels Jul 5, 2023
@bimmlerd bimmlerd requested a review from joamaki July 5, 2023 13:00
@bimmlerd bimmlerd force-pushed the pr/bimmlerd/statedb-api-handler-extraction branch 2 times, most recently from 2328d3c to 91c49d1 Compare July 5, 2023 13:41
pkg/statedb/api_handler.go Outdated Show resolved Hide resolved
pkg/statedb/api_handler.go Outdated Show resolved Hide resolved
@bimmlerd bimmlerd force-pushed the pr/bimmlerd/statedb-api-handler-extraction branch 2 times, most recently from e72823b to 614f048 Compare July 6, 2023 07:49
@bimmlerd bimmlerd marked this pull request as ready for review July 6, 2023 07:49
@bimmlerd bimmlerd requested review from a team as code owners July 6, 2023 07:50
@bimmlerd
Copy link
Member Author

bimmlerd commented Jul 6, 2023

/test

With the newly modularized API server, we can pull out individual
handlers into their packages; in this case the statedb Dump handler.

Signed-off-by: David Bimmler <david.bimmler@isovalent.com>
@bimmlerd bimmlerd force-pushed the pr/bimmlerd/statedb-api-handler-extraction branch from 614f048 to e8bf13d Compare July 6, 2023 08:25
@bimmlerd
Copy link
Member Author

/test

@bimmlerd
Copy link
Member Author

CI triage:

@bimmlerd
Copy link
Member Author

/ci-e2e

@bimmlerd bimmlerd requested a review from joamaki July 17, 2023 11:45
@@ -22,6 +22,7 @@ var Cell = cell.Module(
"In-memory database",

cell.Provide(New),
cell.Provide(newDumpHandler), // REST API Handler
Copy link
Contributor

Choose a reason for hiding this comment

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

nit(in case you rebase): you can collapse the provide's into one which I find
easier to read:

cell.Provide(
  New,
  newDumpHandler, // The /statedb/dump REST API handler
)

@maintainer-s-little-helper maintainer-s-little-helper bot added ready-to-merge This PR has passed all tests and received consensus from code owners to merge. labels Jul 17, 2023
@aditighag aditighag merged commit 8038486 into cilium:main Jul 19, 2023
65 checks passed
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. area/modularization 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. sig/agent Cilium agent related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants