kubectl icon indicating copy to clipboard operation
kubectl copied to clipboard

Improvement required in kubectl get

Open Ritikaa96 opened this issue 1 year ago • 5 comments

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

Ritikaa96 avatar Feb 09 '24 09:02 Ritikaa96

/area kubectl /sig cli

Ritikaa96 avatar Feb 09 '24 09:02 Ritikaa96

Related to #1432 Would like to contribute this change if the triage get accepted.

Ritikaa96 avatar Feb 09 '24 09:02 Ritikaa96

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

ardaguclu avatar Feb 14 '24 14:02 ardaguclu

/assign thanks @ardaguclu

Ritikaa96 avatar Feb 22 '24 09:02 Ritikaa96

I've raised a PR for the same here

Ritikaa96 avatar Feb 26 '24 05:02 Ritikaa96