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

feat: support list cluster service reference #5477

Closed
wants to merge 9 commits into from

Conversation

1aal
Copy link
Contributor

@1aal 1aal commented Oct 16, 2023

Now kbcli support creating cluster with using a service reference with another cluster in KubeBlocks.
So we support kbcli cluster list-serviceRef [cd-name] to list all serviceRefs declared in a cluster-definition.

Example:
image

@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines. label Oct 16, 2023
@apecloud-bot apecloud-bot requested a review from realzyy October 16, 2023 13:50
@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cb9dd3f) 68.50% compared to head (602b6bc) 68.50%.
Report is 55 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5477   +/-   ##
=======================================
  Coverage   68.50%   68.50%           
=======================================
  Files         269      269           
  Lines       30858    30858           
=======================================
+ Hits        21138    21140    +2     
+ Misses       8013     8010    -3     
- Partials     1707     1708    +1     
Flag Coverage Δ
unittests 68.50% <ø> (+<0.01%) ⬆️

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

see 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@1aal 1aal marked this pull request as ready for review October 17, 2023 01:50
}
for _, serviceDec := range comp.ServiceRefDeclarations {
for _, ref := range serviceDec.ServiceRefDeclarationSpecs {
p.AddRow(serviceDec.Name, comp.Name, ref.ServiceKind, ref.ServiceVersion)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The first column should be the Name of CD, and add a column to display service ref name. Because this command can list more than one CDs service ref, so need a column to show which CD.

@1aal
Copy link
Contributor Author

1aal commented Oct 22, 2023

@1aal 1aal closed this Oct 22, 2023
@github-actions github-actions bot added this to the Release 0.7.0 milestone Oct 22, 2023
@1aal 1aal deleted the support/kbcli-list-serviceRef branch October 26, 2023 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/user-interaction feature size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Features] kbcli support list service reference
6 participants