Skip to content

Commit e0832fc

Browse files
authored
Merge pull request #1219 from weeco/ms/fix-internal-topics-filter
kadm: fix ListTopics filtering internal topics when explicitly requested
2 parents a09f0e7 + 80b0849 commit e0832fc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pkg/kadm/topics.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ func (cl *Client) ListTopics(
2626
if err != nil {
2727
return nil, err
2828
}
29-
t.FilterInternal()
29+
// Only filter internal topics when listing all topics (no specific topics requested).
30+
// If specific topics are named, include them even if they are internal.
31+
if len(topics) == 0 {
32+
t.FilterInternal()
33+
}
3034
return t, nil
3135
}
3236

0 commit comments

Comments
 (0)