-
Notifications
You must be signed in to change notification settings - Fork 63
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: clusteradm get klusterlet-info #143
Feat: clusteradm get klusterlet-info #143
Conversation
@qiujian16 please help to review |
|
) | ||
|
||
func (o *Options) run() error { | ||
// printing registration-operator |
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.
I think we should also consider showing the klusterlet API info here. There is some very helpful info like whether the klusterlet secret is correctly configured.
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.
Will we print the whole API info with the tree-style?
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.
Or we just choose some to show? such as Spec.DeployOption, Status.Conditions?
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.
I would think conditions at first. Actually since it has relatedObject and generations in the status. It probably should read resource from there first and then get the certain resources.
add common utility PrintComponentsCRD for cluster-manager/klusterlet to print crd Signed-off-by: ycyaoxdu <[email protected]>
706908e
to
0aa7e82
Compare
For now, the output looks like this:
|
seems like other info are shown here except below 5: |
0aa7e82
to
eab7e7d
Compare
…mponentsCRD, printer.PrintComponentsDeploy to replace printComponentsDelpoyment. Signed-off-by: ycyaoxdu <[email protected]>
eab7e7d
to
02f2cf4
Compare
add common utilities: printer.PrintComponentsDeploy and printer.PrintComponentsCRD. |
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.
/approve
/lgtm
} | ||
|
||
func (o *Options) printComponents() error { | ||
klet, err := o.operatorClient.OperatorV1(). |
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.
why get this again?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qiujian16, ycyaoxdu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: ycyaoxdu [email protected]
for issue: #133
this feature is a modification of #128