kubectl
kubectl copied to clipboard
Improvement required in kubectl get
What happened: kubectl get --help states the following even though we can use --namespace to get details for other namespace resources.
Display one or many resources.
Prints a table of the most important information about the specified resources.
You can filter the list using a label selector and the --selector flag. If the
desired resource type is namespaced you will only see results in your current
namespace unless you pass --all-namespaces.
...
What you expected to happen:
The description should mention --namespace as this can show objects/resources from different namespace as well
How to reproduce it (as minimally and precisely as possible):
Try: kubectl get --help
/area kubectl /sig cli
Related to #1432 Would like to contribute this change if the triage get accepted.
I think, this makes sense, because all the other flags in the description is referred as example already. /triage accepted /priority backlog @Ritikaa96 feel free to open a PR
/assign thanks @ardaguclu
I've raised a PR for the same here