-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
cli: standardize kubernetes resource parsing #792
Comments
Relates to #683 (comment) |
Instead of this, I would prefer (thinking as a user) to use |
I have a strong preference for using an established syntax for referencing these resources, and as far as I know |
Yes, my mistake.
True. |
The Tap command leveraged new cli parsing code, enabling Kubernetes resources specified as `(TYPE [NAME | -l label] | TYPE/NAME ...)`. The Stat command did not use this. Modify the Stat command to use the same cli flag parsing code as Tap. Remove the to/from-resource flags. Fixes #792 Signed-off-by: Andrew Seigner <siggy@buoyant.io>
The Tap command leveraged new cli parsing code, enabling Kubernetes resources specified as `(TYPE [NAME] | TYPE/NAME)`. The Stat command did not use this. Modify the Stat command to use the same cli flag parsing code as Tap. Remove the to/from-resource flags from Stat. Fixes #792 Signed-off-by: Andrew Seigner <siggy@buoyant.io>
The Tap command leveraged new cli parsing code, enabling Kubernetes resources specified as `(TYPE [NAME] | TYPE/NAME)`. The Stat command did not use this. Modify the Stat command to use the same cli flag parsing code as Tap. Remove the to/from-resource flags from Stat. Fixes #792 Signed-off-by: Andrew Seigner <siggy@buoyant.io>
Background
We're working towards new Kubernetes-aware cli commands, specificallly to
stat
(#627) andtap
(#778). We need common patterns to describe Kubernetes objects in cli flags.Requirements
Both of these commands require input of the following information
Current state
The APIs currently consume this input via inconsistent flags. Some examples:
stat
tap
Proposal
(type) [name]
or(type)/[name]
, wherename
is optional:stat deploy
stat deploy/foo
stat deploy foo
--to deploy
--to deploy/foo
--from deploy/foo
--namespace
--to-namepace
--from-namespace
--all-namespaces
behaves as it does todaySome examples:
The text was updated successfully, but these errors were encountered: