redpanda-data / redpanda

Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!
https://redpanda.com
9.46k stars 579 forks source link

rpk: group describe supporting regex #19839

Closed daisukebe closed 3 months ago

daisukebe commented 3 months ago

Motivation explained in https://github.com/redpanda-data/redpanda/issues/17710

when redpanda admins/support want to get a description of all consumer groups...
the drill is a  "for i in " loop based on "rpk group list" ..
which runs
rpk group describe $i
on each group

We should have the ability to get the group description in a single rpk group command

I lean towards supporting regex in the describe command as topic describe does. As group describe already accepts more than one group in one command, I feel it is natural to support regex too.

Fixes https://github.com/redpanda-data/redpanda/issues/17710

Backports Required

Release Notes

Improvements

daisukebe commented 3 months ago

Based on @r-vasquez 's feedback, made some changes below and rebased.

daisukebe commented 3 months ago

/ci-repeat 3

daisukebe commented 3 months ago

@r-vasquez , is the build failure relevant?

r-vasquez commented 3 months ago

@daisukebe They were unrelated failures, not sure why the bot didn't retry (I did it manually). Merging it now, thanks

vbotbuildovich commented 3 months ago

/backport v24.1.x

vbotbuildovich commented 3 months ago

/backport v23.3.x