k3s/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
..
apply Merge pull request #60947 from fanzhangio/replace 2018-03-30 11:53:07 -07:00
apps Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
categories Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cmd Merge pull request #63254 from liggitt/api-resources 2018-04-27 17:43:13 -07:00
explain escape literal percent sign when formatting 2018-03-23 12:59:50 +08:00
genericclioptions provide standard iostream struct for commands 2018-04-20 12:54:11 -04:00
metricsutil kubectl: Use metrics-server for kubectl top commands 2018-01-22 21:45:06 +01:00
plugins Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
proxy Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
resource divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
scheme remove KUBE_API_VERSIONS 2018-04-26 08:27:49 -04:00
util Add missing binaryData field to the ConfigMap Hash 2018-03-13 22:08:06 -04:00
validation Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
.import-restrictions Move scheduler code out of plugin directory. 2018-01-05 15:05:01 -08:00
BUILD use record flags 2018-04-18 13:56:59 -04:00
OWNERS
apply.go remove confusing flexibility for metadata interpretation 2018-04-23 13:31:55 -04:00
autoscale.go
autoscale_test.go pkg/util/pointer: Update `int` pointer functions 2018-03-27 10:30:01 -04:00
bash_comp_utils.go
clusterrolebinding.go
clusterrolebinding_test.go
conditions.go segregate job scaling from everything else 2018-04-05 10:24:34 -04:00
configmap.go Add support for binary file in configmap 2018-01-23 07:28:34 -05:00
configmap_test.go Add support for binary file in configmap 2018-01-23 07:28:34 -05:00
delete.go segregate job scaling from everything else 2018-04-05 10:24:34 -04:00
delete_test.go segregate job scaling from everything else 2018-04-05 10:24:34 -04:00
deployment.go Add basic generator for apps/v1 deployment 2018-04-11 00:44:29 +05:30
deployment_test.go Add basic generator for apps/v1 deployment 2018-04-11 00:44:29 +05:30
doc.go
env_file.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
env_file_test.go
generate.go
generate_test.go
history.go Update versioned portions of kubectl to use apps/v1 with DaemonSet 2018-02-23 08:06:42 -08:00
history_test.go
interfaces.go
kubectl.go Document that endpoints is only plural in resource aliases 2018-03-14 16:02:51 -07:00
namespace.go
namespace_test.go Remove unused code in UT files in pkg/ 2018-01-15 16:02:35 +08:00
pdb.go
pdb_test.go
priorityclass.go
priorityclass_test.go
quota.go
quota_test.go
rolebinding.go
rolebinding_test.go
rollback.go Update versioned portions of kubectl to use apps/v1 with DaemonSet 2018-02-23 08:06:42 -08:00
rollback_test.go
rolling_updater.go removes job scaler 2018-04-04 08:23:21 -04:00
rolling_updater_test.go stop duplicating preferred version order 2018-04-26 10:03:36 -04:00
rollout_status.go
rollout_status_test.go
run.go
run_test.go
scale.go segregate job scaling from everything else 2018-04-05 10:24:34 -04:00
scale_test.go removes job scaler 2018-04-04 08:23:21 -04:00
secret.go
secret_for_docker_registry.go add --from-file flag to docker-registry secret 2018-03-21 11:13:11 -04:00
secret_for_docker_registry_test.go Fix problem accessing private docker registries 2017-12-20 12:37:40 -05:00
secret_for_tls.go
secret_for_tls_test.go
secret_test.go
service.go
service_basic.go
service_basic_test.go fix failed verify misspell err 2018-03-20 11:16:51 +08:00
service_test.go
serviceaccount.go
serviceaccount_test.go
sorter.go wire through humanreadable flags 2018-04-03 13:59:35 -04:00
sorter_test.go wire through humanreadable flags 2018-04-03 13:59:35 -04:00