Files
kubernetes/pkg/kubectl
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-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2018-04-26 08:27:49 -04:00
2018-04-18 13:56:59 -04:00
2018-04-04 08:23:21 -04:00
2018-04-04 08:23:21 -04:00
2018-04-03 13:59:35 -04:00