Skip to content

[v0.5] script: introduce db/dump script command#165

Merged
joamaki merged 2 commits into
v0.5from
pr/giorio94/v0.5/db-dump-command
Jun 11, 2026
Merged

[v0.5] script: introduce db/dump script command#165
joamaki merged 2 commits into
v0.5from
pr/giorio94/v0.5/db-dump-command

Conversation

@giorio94

Copy link
Copy Markdown
Member

Backport of #164

giorio94 added 2 commits June 11, 2026 16:23
[ upstream commit 5999345 ]

[ backporter's notes: fixed a minor conflict in the testdata due to
  different surrounding context. ]

Introduce a `db/dump` script command that dumps the entire contents of
StateDB as JSON. This command mimics the behavior of the already existing
`/dump/` HTTP API, and is intended to be used to retrieve a snapshot of
the DB (for instance during sysdump collection), without having to
register the HTTP API, and implement a custom client.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
[ upstream commit dc3c1e5 ]

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94 giorio94 requested a review from a team as a code owner June 11, 2026 14:35
@giorio94 giorio94 requested review from joamaki and tommyp1ckles and removed request for a team and tommyp1ckles June 11, 2026 14:35
@joamaki joamaki merged commit 3eb4c7d into v0.5 Jun 11, 2026
@joamaki joamaki deleted the pr/giorio94/v0.5/db-dump-command branch June 11, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants