-
Notifications
You must be signed in to change notification settings - Fork 190
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
} | ||
for _, serviceDec := range comp.ServiceRefDeclarations { | ||
for _, ref := range serviceDec.ServiceRefDeclarationSpecs { | ||
p.AddRow(serviceDec.Name, comp.Name, ref.ServiceKind, ref.ServiceVersion) |
There was a problem hiding this comment.
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.
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: