Skip to content
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

[improve][cli] Add current option in the Clusters list cmd #21139

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

Technoboy-
Copy link
Contributor

Fixes #20581
PIP: #20614

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Sep 6, 2023
@Technoboy- Technoboy- self-assigned this Sep 6, 2023
@Technoboy- Technoboy- added this to the 3.2.0 milestone Sep 6, 2023
@mattisonchao
Copy link
Member

Could you please add test to cover this change? :)

@Technoboy-
Copy link
Contributor Author

Could you please add test to cover this change? :)

Added

void run() throws PulsarAdminException {
print(getAdmin().clusters().getClusters());
java.util.List<String> clusters = getAdmin().clusters().getClusters();
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
java.util.List<String> clusters = getAdmin().clusters().getClusters();
List<String> clusters = getAdmin().clusters().getClusters();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, duplicated name with this Class. So need to add package prefix.

@Technoboy- Technoboy- merged commit d1f8f96 into apache:master Sep 7, 2023
62 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs ready-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improve][Admin API] Clusters list API return clusters with local and remote flag
5 participants