Files
kubernetes/hack
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
..
2017-09-19 18:10:21 +05:30
2018-04-25 09:47:14 -07:00
2018-04-13 11:12:10 +02:00
2018-01-30 09:29:51 -08:00
2018-03-29 17:01:32 -07:00
2017-08-27 22:20:04 -04:00
2018-01-22 15:11:16 -08:00
2018-03-29 17:01:32 -07:00
2018-01-09 23:09:08 -08:00
2018-01-09 23:09:08 -08:00
2018-03-29 17:01:30 -07:00