Skip to content

feat(cli): add cluster metadata command#2839

Merged
hubcio merged 2 commits intoapache:masterfrom
seokjin0414:2634-cli-cluster-metadata
Mar 3, 2026
Merged

feat(cli): add cluster metadata command#2839
hubcio merged 2 commits 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.50%. Comparing base (88f43f5) to head (1298782).
⚠️ Report is 1 commits behind head on master.

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.52%   67.50%   -0.02%     
  Complexity      739      739              
============================================
  Files          1048     1049       +1     
  Lines         84103    84144      +41     
  Branches      60703    60756      +53     
============================================
+ Hits          56790    56802      +12     
- Misses        24951    24973      +22     
- Partials       2362     2369       +7     
Flag Coverage Δ
csharp 67.06% <ø> (-0.19%) ⬇️
go 6.33% <ø> (ø)
java 54.83% <ø> (ø)
node 92.26% <ø> (-0.07%) ⬇️
python 0.00% <ø> (ø)
rust 69.68% <82.92%> (-0.03%) ⬇️

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 13 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
@hubcio hubcio merged commit 0423f52 into apache:master Mar 3, 2026
74 checks passed
kriti-sc pushed a commit to kriti-sc/iggy that referenced this pull request Mar 6, 2026
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

3 participants