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

[Feature] how to display vela application yaml from CLI? #4235

Closed
wonderflow opened this issue Jun 23, 2022 · 4 comments · Fixed by #4415
Closed

[Feature] how to display vela application yaml from CLI? #4235

wonderflow opened this issue Jun 23, 2022 · 4 comments · Fixed by #4415
Assignees
Labels
good first issue Good for newcomers
Milestone

Comments

@wonderflow
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

In #4230, when we need to get the application yaml, we have no way but using kubectl.

Describe the solution you'd like

I think we can have a command such as:

vela status <myapp> -o yaml

This can display the whole application with status.

Describe alternatives you've considered

Additional context

@wonderflow wonderflow added the good first issue Good for newcomers label Jun 23, 2022
@Somefive
Copy link
Collaborator

Is it just an alternative for kubectl get app <myapp> -n <ns>? Or more functions like pretty format / coloring / subcommand would be supported?

@wonderflow
Copy link
Collaborator Author

Just an alternative is fine.

@StevenLeiZhang
Copy link
Collaborator

Here is already one flag named "detail-format"

➜  ~ vela -n vela-system status -h          
Show status of vela application.

Usage:
  vela status APP_NAME [flags]

Examples:
vela status APP_NAME

Flags:
  -c, --component string       filter service endpoints by component name
  -d, --detail                 display the realtime details of application resources
      --detail-format string   the format for displaying details. Can be one of inline (default), wide, list, table, raw. (default "inline")

So we could just reuse it

vela -n xxxx status  xxxx --detail-format yaml

@wonderflow wonderflow added this to the KubeVela-v1.5 milestone Jul 1, 2022
@charlie0129
Copy link
Member

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants