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: Multi-cluster service and log query #262

Merged
merged 1 commit into from
Nov 21, 2023
Merged

feat: Multi-cluster service and log query #262

merged 1 commit into from
Nov 21, 2023

Conversation

ONE7live
Copy link
Member

@ONE7live ONE7live commented Nov 17, 2023

What type of PR is this?

/kind feature

What does this PR do?

You can use kosmosctl to query leaf cluster service resources and logs without logging in to the subcluster for querying.
If you do not specify a cluster, the control plane cluster resources are retrieved by default.
Usage examples are as follows:
image
image

Which issue(s) does this PR fix?

Fixes #

Special notes for your reviewer:

/cc @wuyingjun-lucky @OrangeBao

Does this PR introduce a user-facing change?


if err != nil {
return fmt.Errorf("kosmosctl get run error, options failed: %s", err)
if o.Cluster != utils.DefaultClusterName {
err := o.GetOptions.Run(newF, cmd, args)
Copy link
Contributor

Choose a reason for hiding this comment

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

good job! Calling kubectl's function is a good method

@OrangeBao
Copy link
Contributor

/lgtm

@wuyingjun-lucky
Copy link
Member

/approve
Thank you @ONE7live

@kosmos-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ONE7live, wuyingjun-lucky

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kosmos-robot kosmos-robot merged commit ae17471 into kosmos-io:main Nov 21, 2023
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants