-
Notifications
You must be signed in to change notification settings - Fork 39.5k
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
Kind wildcarding/discovery in kubectl #5278
Comments
One wrinkle - should all include "namespaced" resources and "cluster resources", just "namespaced resources", or just "resources you actually have access to view" (because there will be some in that list that an end user probably won't have access to list) ----- Original Message -----
|
Is this a listing call or is it just short-hand for user typing: kubectl describe pods foo In general, not all of resource types support describe yet if I recall, so that should probably be resolved first. ----- Original Message ----- One wrinkle - should all include "namespaced" resources and "cluster resources", just "namespaced resources", or just "resources you actually have access to view" (because there will be some in that list that an end user probably won't have access to list) ----- Original Message -----
Reply to this email directly or view it on GitHub: |
Short hand. Eventually might be server calculated and cached locally in the config
|
If its short-hand it should just be "all cluster scoped resources with name foo and all namespace scoped resources in current namespace context name foo". ----- Original Message ----- Short hand. Eventually might be server calculated and cached locally in the config
Reply to this email directly or view it on GitHub: |
I didn't really intend to support "all " - instead you'd have to say "pods/foo nodes/foo". That way create can do "pods/foo\nnodes/foo" and you can xargs it. If you specify a resource type for arg1 i don't think you should be allowed to specify anything except label selectors or --all. ----- Original Message -----
|
kubectl describe seems to know how to handle: kubectl get seems to know how to print something about: So yeah, kubectl describe isn't nearly as knowledgeable as get |
We should decide on the shorthand. The use case discussed in #6511 is really "delete all of the end user facing things in my namespace that match this label". I don't think it applies to nodes, events, users, tokens, security policies, or other root scoped objects (in this context). It's probably more like "stop all of these things", rather than delete. It has to be extensible when other resource types are added (it can be hardcoded, but the implementation has to be something provided via cmd.Factory). My gut reaction was to define a |
Forked from #3233.
I think the last proposal was to support:
where "all" implies all known kinds.
@brendandburns @smarterclayton
The text was updated successfully, but these errors were encountered: