-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add -o CLI flag to documentation #1536
Comments
As I finished typing this I realised there's already a pretty good way to do this: output the CRD directly from kubectl. 🤦♂️ e.g. to list the most recent backup: ✗ kubectl get backups.velero.io --sort-by=.metadata.creationTimestamp -o jsonpath="{.items[-1].metadata.name}
daily-prod-backup-20190603040038 This handles my use-case so I'm closing this issue. |
FYI - you can also do |
@skriss - that's probably tidier. There's no mention of it in the documentation or |
It's documented in the help for the specific commands ( |
@nrb @carlisia @prydonius do you think we need to document this any further? On reflection I think it's properly documented in the CLI help text, so I'm not sure there's anything else to do here. |
IMO it's more useful directly on the subcommands than on |
Fine by me; I think this was really my mistake in not looking at the specific command's help text. |
Describe the solution you'd like
It would be useful to be able to change the output format of the Velero CLI so that the CLI can be used in higher-level orchestration tools and scripts.
Anything else you would like to add:
Something similar to the kubectl output options would probably meet a wide range of use cases.
Environment:
velero version
):v1.0.0
kubectl version
):version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T18:55:03Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"darwin/amd64"}
/etc/os-release
):OSX 10.14.5
The text was updated successfully, but these errors were encountered: