k3s/pkg/kubectl/cmd
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
..
auth divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
config Update gofmt for go1.10 2018-04-02 17:44:04 -07:00
create divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
get rest mappings cannot logically be object converters 2018-04-26 12:47:25 -04:00
rollout divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
scalejob segregate job scaling from everything else 2018-04-05 10:24:34 -04:00
set divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
templates Filter unavailable commands in help 2018-04-20 16:52:26 +02:00
testdata/edit wire printflags through additional cmds 2018-04-25 16:07:32 -04:00
testing Merge pull request #63250 from deads2k/cli-39-typer 2018-04-27 10:45:13 -07:00
util Merge pull request #63250 from deads2k/cli-39-typer 2018-04-27 10:45:13 -07:00
BUILD wire PrintFlags through get cmd 2018-04-25 15:02:48 -04:00
alpha.go
annotate.go tighten .Info for kubectl to avoid unpredictable conversion 2018-04-26 12:47:25 -04:00
annotate_test.go remove hardcoded list of resources 2018-04-26 09:31:58 -04:00
apiresources.go provide standard iostream struct for commands 2018-04-20 12:54:11 -04:00
apiversions.go
apply.go tighten .Info for kubectl to avoid unpredictable conversion 2018-04-26 12:47:25 -04:00
apply_edit_last_applied.go provide standard iostream struct for commands 2018-04-20 12:54:11 -04:00
apply_set_last_applied.go divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
apply_test.go provide standard iostream struct for commands 2018-04-20 12:54:11 -04:00
apply_view_last_applied.go remove confusing flexibility for metadata interpretation 2018-04-23 13:31:55 -04:00
attach.go remove unnecessarily flexibiliy to simplify the resource builder 2018-04-27 09:27:51 -04:00
attach_test.go stop duplicating preferred version order 2018-04-26 10:03:36 -04:00
autoscale.go divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
certificates.go remove unnecessarily flexibiliy to simplify the resource builder 2018-04-27 09:27:51 -04:00
clusterinfo.go remove unnecessarily flexibiliy to simplify the resource builder 2018-04-27 09:27:51 -04:00
clusterinfo_dump.go wire printflags through additional cmds 2018-04-25 16:07:32 -04:00
clusterinfo_dump_test.go report outputFormat in PrintFlags err 2018-04-25 16:35:56 -04:00
cmd.go remove hardcoded list of resources 2018-04-26 09:31:58 -04:00
cmd_test.go wire PrintFlags through get cmd 2018-04-25 15:02:48 -04:00
completion.go fix kubectl_filedir completion 2018-03-13 16:21:30 -04:00
convert.go remove unnecessarily flexibiliy to simplify the resource builder 2018-04-27 09:27:51 -04:00
convert_test.go wire printflags through additional cmds 2018-04-25 16:07:32 -04:00
cp.go wire printflags through additional cmds 2018-04-25 16:07:32 -04:00
cp_test.go report outputFormat in PrintFlags err 2018-04-25 16:35:56 -04:00
delete.go remove flags deprecated in 1.5 2018-04-19 08:08:44 -04:00
delete_flags.go remove flags deprecated in 1.5 2018-04-19 08:08:44 -04:00
delete_test.go Remove examples directory 2018-04-24 19:45:43 +01:00
describe.go update describe command opts struct 2018-04-26 09:42:26 -04:00
describe_test.go remove hardcoded list of resources 2018-04-26 09:31:58 -04:00
diff.go fix kubectl apply error message 2018-03-17 15:08:26 +08:00
diff_test.go
drain.go remove unnecessarily flexibiliy to simplify the resource builder 2018-04-27 09:27:51 -04:00
drain_test.go divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
edit.go wire printflags through additional cmds 2018-04-25 16:07:32 -04:00
edit_test.go provide standard iostream struct for commands 2018-04-20 12:54:11 -04:00
exec.go flag value bindings for kubectl attach/convert/delete/drain/edit/exec commands 2018-02-28 15:21:39 +08:00
exec_test.go Remove invalid comments in unit tests 2018-03-10 15:08:12 +08:00
explain.go divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
expose.go divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
expose_test.go wire printflags through additional cmds 2018-04-25 16:07:32 -04:00
help.go some code change 2017-12-25 16:23:38 +08:00
label.go tighten .Info for kubectl to avoid unpredictable conversion 2018-04-26 12:47:25 -04:00
label_test.go report outputFormat in PrintFlags err 2018-04-25 16:35:56 -04:00
logs.go remove unnecessarily flexibiliy to simplify the resource builder 2018-04-27 09:27:51 -04:00
logs_test.go Support multi-container pod for "kubectl logs" 2018-03-27 11:44:31 +08:00
options.go
patch.go tighten .Info for kubectl to avoid unpredictable conversion 2018-04-26 12:47:25 -04:00
patch_test.go wire printflags through additional cmds 2018-04-25 16:07:32 -04:00
plugin.go some code change 2017-12-25 16:23:38 +08:00
plugin_test.go use temp kubeconfig for fake factory 2018-03-09 15:53:19 -05:00
portforward.go remove unnecessarily flexibiliy to simplify the resource builder 2018-04-27 09:27:51 -04:00
portforward_test.go Remove invalid comments in unit tests 2018-03-10 15:08:12 +08:00
proxy.go some code change 2017-12-25 16:23:38 +08:00
replace.go tighten .Info for kubectl to avoid unpredictable conversion 2018-04-26 12:47:25 -04:00
replace_test.go Remove examples directory 2018-04-24 19:45:43 +01:00
rollingupdate.go tighten .Info for kubectl to avoid unpredictable conversion 2018-04-26 12:47:25 -04:00
rollingupdate_test.go use temp kubeconfig for fake factory 2018-03-09 15:53:19 -05:00
run.go divide statically known typer from dynamically derive restmapper 2018-04-27 11:15:05 -04:00
run_test.go update more commands for iostreams 2018-04-25 08:45:15 -04:00
scale.go final record flag cleanup 2018-04-19 14:56:00 -04:00
taint.go remove unnecessarily flexibiliy to simplify the resource builder 2018-04-27 09:27:51 -04:00
taint_test.go boring 2018-04-18 09:55:57 -07:00
top.go flag value bindings for kubectl label/patch/taint/top commands 2018-02-24 16:37:19 +08:00
top_node.go flag value bindings for kubectl label/patch/taint/top commands 2018-02-24 16:37:19 +08:00
top_node_test.go use temp kubeconfig for fake factory 2018-03-09 15:53:19 -05:00
top_pod.go flag value bindings for kubectl label/patch/taint/top commands 2018-02-24 16:37:19 +08:00
top_pod_test.go use temp kubeconfig for fake factory 2018-03-09 15:53:19 -05:00
top_test.go use temp kubeconfig for fake factory 2018-03-09 15:53:19 -05:00
version.go