Skip to content

feat(admin): add DescribeConfigs for multiple resources - #3600

Merged
dnwe merged 2 commits into
mainfrom
dnwe/desccfgs
Jun 3, 2026
Merged

dnwe merged 2 commits into
mainfrom
dnwe/desccfgs

Conversation

@dnwe

@dnwe dnwe commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Add DescribeConfigs, which describes several resources in one call, returns per-resource errors, and takes options to request synonyms (Kafka 1.1.0+) and documentation (Kafka 2.6.0+). Resources are grouped by the broker that must serve them, so broker and broker-logger configs still reach the right node.

Negotiate DescribeConfigs v3 and v4 from the configured version, and deprecate the singular DescribeConfig in favour of the new method.

Add DescribeConfigs, which describes several resources in one call,
returns per-resource errors, and takes options to request synonyms
(Kafka 1.1.0+) and documentation (Kafka 2.6.0+). Resources are grouped
by the broker that must serve them, so broker and broker-logger configs
still reach the right node.

Negotiate DescribeConfigs v3 and v4 from the configured version, and
deprecate the singular DescribeConfig in favour of the new method.

Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
Comment thread admin.go Resolved
Comment thread admin.go Resolved
Comment thread admin.go Resolved
Comment thread admin.go Resolved
Comment thread admin.go Resolved
Comment thread admin.go
if dependsOnSpecificNode(resource) {
var id int64
id, err = strconv.ParseInt(resource.Name, 10, 32)
_ = b.Open(ca.client.Config())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we want to throw away the error here? I suppose the DesribeConfig will throw an error if itโ€™s not open?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, _ = b.Open is a pattern we use everywhere, and it might be that we still establish connection within the request timeout

Comment thread admin.go Resolved
Comment thread admin.go Resolved
Comment thread admin.go Resolved
- take/return pointer slices, avoiding ConfigResource copies
- take a pointer in dependsOnSpecificNode
- pre-allocate the deprecated DescribeConfig result
- restructure broker selection as a switch

Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
@dnwe

dnwe commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator Author

@puellanivis thanks! Very useful observations as always - addressed

@dnwe dnwe added the feat label Jun 3, 2026
@dnwe
dnwe merged commit f6d1c19 into main Jun 3, 2026
19 checks passed
@dnwe
dnwe deleted the dnwe/desccfgs branch June 3, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants