Repository navigation
feat(admin): add DescribeConfigs for multiple resources - #3600
Merged
Merged
Conversation
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>
puellanivis
reviewed
Jun 3, 2026
| if dependsOnSpecificNode(resource) { | ||
| var id int64 | ||
| id, err = strconv.ParseInt(resource.Name, 10, 32) | ||
| _ = b.Open(ca.client.Config()) |
Collaborator
There was a problem hiding this comment.
Do we want to throw away the error here? I suppose the DesribeConfig will throw an error if itโs not open?
Collaborator
Author
There was a problem hiding this comment.
Yeah, _ = b.Open is a pattern we use everywhere, and it might be that we still establish connection within the request timeout
- 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>
Collaborator
Author
|
@puellanivis thanks! Very useful observations as always - addressed |
puellanivis
approved these changes
Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.