kubernetes/pkg/kubectl
Kubernetes Submit Queue 653fd97ba0 Merge pull request #37966 from p0lyn0mial/unify_restmapping_and_restmappings
Automatic merge from submit-queue (batch tested with PRs 38185, 37966)

decided to extract common logic for RESTMapping and RESTMappings to a…

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->

**What this PR does / why we need it**: the changes introduced in this PR extract common logic of RESTMapping and RESTMappings to one common method. 

**Special notes for your reviewer**: this is my first PR - be polite.



The only change in logic to what was before is when calling commonRESTMappings from RESTMapping
we search all defaultGroupVersion as opposed to just one when no mapping was found for provided versions.
2016-12-06 06:49:25 -08:00
..
cmd Merge pull request #37966 from p0lyn0mial/unify_restmapping_and_restmappings 2016-12-06 06:49:25 -08:00
metricsutil Fix package aliases to follow golang convention 2016-11-30 15:40:50 +08:00
resource refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
testing refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
apply.go Fix typos 2016-10-15 00:21:00 +03:00
autoscale.go check the value of min and max 2016-12-01 16:09:05 +08:00
bash_comp_utils.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
BUILD refactor: generated 2016-12-03 19:10:46 -05:00
cluster.go [Federation][(Un)join-00] Implement federation/cluster resource generator. 2016-11-01 00:58:54 -07:00
cluster_test.go [Federation][(Un)join-00] Implement federation/cluster resource generator. 2016-11-01 00:58:54 -07:00
clusterrolebinding.go add create clusterrolebinding command 2016-11-21 08:50:06 -05:00
configmap.go Move IsSecretKey into util/validation 2016-07-03 02:19:09 -07:00
configmap_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
custom_column_printer.go make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
custom_column_printer_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
deployment.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
deployment_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
describe.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
describe_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
explain.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generate.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generate_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
history.go generated: refactor 2016-11-23 22:30:47 -06:00
interfaces.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubectl.go kubectl: set alias for poddisruptionbudget 2016-12-02 18:39:55 +01:00
kubectl_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
namespace.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
namespace_test.go Fix namespace_test error message 2016-08-08 12:08:57 +10:00
OWNERS Move pkg/kubectl reviewers into an alias 2016-10-28 14:54:17 -07:00
pdb.go refactor: generated 2016-12-03 19:10:46 -05:00
proxy_server.go Code optimization 2016-11-30 17:40:57 +08:00
proxy_server_test.go Make "attach" and "exec" rejection in proxy more explicit 2016-07-19 20:50:19 +02:00
quota.go Add --scopes to kubectl-create-quota and add tests 2016-07-26 14:12:35 +02:00
quota_test.go Add --scopes to kubectl-create-quota and add tests 2016-07-26 14:12:35 +02:00
resource_filter.go kubectl resource filter convert unstructured obj before apply filter func 2016-11-19 13:03:39 +08:00
resource_printer.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
resource_printer_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
rollback.go generated: refactor 2016-11-23 22:30:47 -06:00
rolling_updater.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
rolling_updater_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
rollout_status.go generated: refactor 2016-11-23 22:30:47 -06:00
rollout_status_test.go kubectl: add --revision flag in rollout status 2016-10-10 15:04:46 +02:00
run.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
run_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
scale.go generated: refactor 2016-11-23 22:30:47 -06:00
scale_test.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
secret.go Move IsSecretKey into util/validation 2016-07-03 02:19:09 -07:00
secret_for_docker_registry.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_for_docker_registry_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_for_tls.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_for_tls_test.go the created path should be closed in test case 2016-09-06 11:08:52 +08:00
secret_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
service.go Merge pull request #28239 from ApsOps/kubectl-expose-headless-svc 2016-08-02 01:18:19 -07:00
service_basic.go create service add create ExternalName service implementation 2016-11-16 04:47:10 -05:00
service_basic_test.go Add "create service" sub-commands 2016-08-08 12:31:21 +10:00
service_test.go Merge pull request #28239 from ApsOps/kubectl-expose-headless-svc 2016-08-02 01:18:19 -07:00
serviceaccount.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
serviceaccount_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorted_resource_name_list.go kubectl 2016-11-23 15:53:09 -08:00
sorted_resource_name_list_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorting_printer.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
sorting_printer_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
stop.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
stop_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
versioned_client.go kubectl 2016-11-23 15:53:09 -08:00