Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue d6967f358e Merge pull request #63254 from liggitt/api-resources
Automatic merge from submit-queue (batch tested with PRs 60890, 63244, 60741, 63254). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add name output and verb filtering to api-resources

This allows `kubectl api-resources -o name` to be used as input to `kubectl get ...`

to see all resources still existing in a given namespace:

Example:
```sh
kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get -o name -n foo
```

Release note:
```release-note
`kubectl api-resources` now supports filtering to resources supporting specific verbs, and can output fully qualified resource names suitable for combining with commands like `kubectl get`
```
2018-04-27 17:43:13 -07:00
..
2018-04-02 17:44:04 -07:00
2018-04-27 21:41:03 +02:00
2018-04-25 15:02:48 -04:00
2018-04-25 15:02:48 -04:00
2018-04-27 21:41:03 +02:00
2018-04-25 16:07:32 -04:00
2018-04-19 08:08:44 -04:00
2018-04-24 19:45:43 +01:00
2018-04-19 08:08:44 -04:00
2018-04-24 19:45:43 +01:00
2018-04-27 21:41:03 +02:00
2018-04-27 21:41:03 +02:00
2018-04-25 08:45:15 -04:00
2018-04-27 21:41:03 +02:00
2018-04-27 21:41:03 +02:00
2018-04-27 21:41:03 +02:00