-
Notifications
You must be signed in to change notification settings - Fork 589
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
rpk debug bundle: save additional admin API requests. #15136
Conversation
This includes existing methods in our adminapi package to the debug bundle.
@@ -204,40 +200,3 @@ func runToggle(ctx context.Context, cl *adminapi.AdminAPI, all bool, topicArg, p | |||
} | |||
return g.Wait() | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was moved to the out
package. The toggle_test.go
file was deleted and moved to in_test.go
(inside out
package)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although it's good the new api's are added to the adminapi package, it's probably worth it to have some blind GetLeader(context, path)
and GetAny(...)
type of request, so that it's less work to just request arbitrary endpoints and capture the arbitrary results.
Anyway, might be good for the future but this is good now too
This introduce the ability to pass a partition flag to `rpk debug bundle`, if passed, rpk will save extra requests to the admin API.
1a96eda
to
7fac14c
Compare
This PR introduces more admin API requests to the debug bundle as well as a way to add extra request for specific topic/partitions.
--partition/-p
flag and the new extra request if this flag is provided.Fixes #14483
Backports Required
Release Notes
Features
--partition
flag to request additional debugging information to the admin API for the provided partitions.Improvements