Skip to content

feat(cli): add cluster metadata command#2839

Open
seokjin0414 wants to merge 1 commit intoapache:masterfrom
seokjin0414:2634-cli-cluster-metadata
Open

feat(cli): add cluster metadata command#2839
seokjin0414 wants to merge 1 commit intoapache:masterfrom
seokjin0414:2634-cli-cluster-metadata

Conversation

@seokjin0414
Copy link
Contributor

Closes #2634

Summary

  • Add iggy cluster metadata CLI command (alias: iggy cl m)
  • Table/List output modes with node name, IP, ports, role, status
  • Add ClusterClient bound to Client trait

Tests

  • 5 integration tests (table mode, list mode, --help, -h, cluster --help)
  • help/overview test expectations updated

@codecov
Copy link

codecov bot commented Mar 1, 2026

Codecov Report

❌ Patch coverage is 82.92683% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.67%. Comparing base (29a27cc) to head (d591931).

Files with missing lines Patch % Lines
...col/src/cli/binary_cluster/get_cluster_metadata.rs 77.41% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2839      +/-   ##
============================================
- Coverage     67.69%   67.67%   -0.02%     
  Complexity      739      739              
============================================
  Files          1031     1032       +1     
  Lines         83912    83953      +41     
  Branches      60706    60754      +48     
============================================
+ Hits          56802    56819      +17     
- Misses        24760    24773      +13     
- Partials       2350     2361      +11     
Flag Coverage Δ
csharp 67.06% <ø> (-0.19%) ⬇️
go 6.84% <ø> (ø)
java 54.83% <ø> (ø)
node 92.18% <ø> (-0.23%) ⬇️
python 0.00% <ø> (ø)
rust 69.70% <82.92%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
core/cli/src/args/common.rs 97.87% <100.00%> (+0.25%) ⬆️
core/cli/src/args/mod.rs 78.57% <ø> (ø)
core/cli/src/main.rs 92.07% <100.00%> (+0.15%) ⬆️
...col/src/cli/binary_cluster/get_cluster_metadata.rs 77.41% <77.41%> (ø)

... and 17 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@seokjin0414 seokjin0414 force-pushed the 2634-cli-cluster-metadata branch 2 times, most recently from 99f1248 to b8c4542 Compare March 1, 2026 16:16
Closes apache#2634

Signed-off-by: shin <sars21@hanmail.net>
@seokjin0414 seokjin0414 force-pushed the 2634-cli-cluster-metadata branch from b8c4542 to d591931 Compare March 1, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement GetClusterMetadata command for iggy CLI

1 participant