k3s/pkg/kubectl/cmd/util
Kubernetes Submit Queue 7884cc5453
Merge pull request #63250 from deads2k/cli-39-typer
Automatic merge from submit-queue (batch tested with PRs 63251, 59166, 63250, 63180, 63169). 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>.

divide statically known typer from dynamically derived restmapper

The CLI factory conflated a statically known typer and a dynamically derived restmapper. This produced confusion and unnecessary indirection.  This pull separates dynamically known from statically known.

A future pull will continue the separation of in the builder to indicate the points of variability for clients, which should logically be limited to a negotiated serializer for decoding and an object typer.

@kubernetes/sig-cli-maintainers 
/assign @soltysh 
/assign @juanvallejo 


```release-note
NONE
```
2018-04-27 10:45:13 -07:00
..
editor tighten .Info for kubectl to avoid unpredictable conversion 2018-04-26 12:47:25 -04:00
env Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
jsonmerge update BUILD files 2017-10-15 18:18:13 -07:00
openapi kubectl stops rendering List as suffix kind name for CRD resources 2018-04-19 21:21:03 +08:00
sanity update BUILD files 2017-10-15 18:18:13 -07:00
BUILD remove uneeded discovery flexibility 2018-04-20 07:21:51 -04:00
cached_discovery.go discovery client not depend on pkg/api/legacyscheme 2017-11-02 14:59:21 -07:00
cached_discovery_test.go kubectl: Remove swagger 1.2 entirely. 2017-10-10 14:50:56 -07:00
factory.go divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
factory_builder.go divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
factory_client_access.go eliminate indirection from type registration 2018-04-25 09:02:31 -04:00
factory_object_mapping.go Merge pull request #63250 from deads2k/cli-39-typer 2018-04-27 10:45:13 -07:00
factory_object_mapping_test.go Remove ClientSetForVersion & ClientConfigForVersion from factory 2018-02-22 15:50:27 +01:00
factory_test.go remove unnecessarily flexibiliy to simplify the resource builder 2018-04-27 09:27:51 -04:00
helpers.go remove confusing flexibility for metadata interpretation 2018-04-23 13:31:55 -04:00
helpers_test.go stop duplicating preferred version order 2018-04-26 10:03:36 -04:00
printing.go remove hardcoded list of resources 2018-04-26 09:31:58 -04:00
shortcut_restmapper.go Prefer exact resource name matches to shortname expansions 2018-01-26 01:45:38 -05:00
shortcut_restmapper_test.go Prefer exact resource name matches to shortname expansions 2018-01-26 01:45:38 -05:00