David Eads
420dd9bf66
move type setting into an optional layer above normal printing
2018-05-17 17:22:12 -04:00
David Eads
3af9e75950
switch to versioned objects only for set
2018-05-14 11:40:11 -04:00
Kubernetes Submit Queue
143d3b8824
Merge pull request #63561 from juanvallejo/jvallejo/make-opinionated-print-flags-constructor
...
Automatic merge from submit-queue (batch tested with PRs 63669, 63511, 63561, 63289). 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>.
remove legacyscheme dep from printFlags
**Release note**:
```release-note
NONE
```
Breaks PrintFlags dependency on legacyscheme
Prerequisite to https://github.com/kubernetes/kubernetes/pull/63402
cc @deads2k @soltysh
2018-05-10 14:25:16 -07:00
juanvallejo
40e52bf07d
remove legacyscheme dep from printFlags
2018-05-10 14:51:12 -04:00
David Eads
16d6a6c52f
move resource builder to generic options
2018-05-10 14:15:12 -04:00
David Eads
b8aa7baa7d
simplify resource builder usage
2018-05-04 13:02:49 -04:00
David Eads
1e5372b620
get the resource.Info out of the conversion business
2018-05-01 07:58:42 -04:00
David Eads
6fbcbc994f
remove unnecessarily flexibiliy to simplify the resource builder
2018-04-27 09:27:51 -04:00
David Eads
8c1b687356
update more commands for iostreams
2018-04-25 08:45:15 -04:00
David Eads
ecd9a6be2e
final record flag cleanup
2018-04-19 14:56:00 -04:00
David Eads
484d81ab01
use recordFlags
2018-04-19 08:50:01 -04:00
David Eads
01609036c2
use standard interface functions for printers
2018-04-12 16:02:30 -04:00
juanvallejo
2a202cf49a
update PrintFlags#Complete to receive string template
2018-04-06 16:44:40 -04:00
juanvallejo
b8dc20646c
wire printflags through set cmds
2018-04-06 10:48:36 -04:00
Di Xu
33b3fb9bed
flag value bindings for kubectl create/get/set commands
2018-02-27 11:00:55 +08:00
David Eads
d8a5420b7c
remove unneeded factory codec methods
2018-02-21 15:20:20 -05:00
David Eads
be04e7c1b1
collapse printing paths
2018-02-21 08:15:22 -05:00
David Eads
dd6405681f
cleanup printers some more
2018-02-20 12:59:40 -05:00
juanvallejo
beb5ea641a
remove mapper dependency - PrintSuccess
2018-02-07 10:10:45 -05:00
Di Xu
1c715d51c4
some code change
...
fix wrong required flags
disable the addition of [flags] to the usage, use customized useline
fix function rename
2017-12-25 16:23:38 +08:00
Clayton Coleman
8f4b6c8771
All commands must declare Unstructured or Internal
...
Callers must take a dependency on one or the other set of conversions
and default client behavior. Future changes may add a Versioned() type,
but this is an accurate reflection of current code state.
2017-11-19 20:41:02 -05:00
Clayton Coleman
04ab96d2bd
Unify Object and UnstructuredObject
...
The unified RESTMapper and Typer follow the new rules, but on error will
fallback to the legacy path (while still supporting Unstructured
objects). This allows callers to handle the appropriate distinction
themselves if necessary.
Add a LocalParam() method to the resource.Builder that DRYs up a large
chunk of complicated code in set commands.
2017-11-19 19:16:50 -05:00
Clayton Coleman
5038eb2a3f
Remove use of VersionedObject and simplify builder in generic methods
...
Reduce all uses of Unstructured to the simpler form, and avoid asking
for mapper or typer unless it is required. Use Typed() for places that
previously used VersionedObject, and remove paths for versioned objects
from code that is now using unstructured.
2017-11-19 19:16:49 -05:00
juanvallejo
701d6536a2
move cmd/util/printing.go#PrintSuccess to factory_builder.go
2017-11-15 10:46:39 -05:00
zhengjiajin
dc312142ab
remove todo: switch UpdatePodSpecForObject to work on v1.PodSpec, use info.VersionedObject, and avoid conversion completely
2017-11-11 02:36:12 +08:00
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
WanLinghao
c79aba664b
fix some small errors in 'kubectl set' series command
...
modified: pkg/kubectl/cmd/set/set_env.go
modified: pkg/kubectl/cmd/set/set_serviceaccount.go
modified: pkg/kubectl/cmd/set/set_subject.go
2017-10-20 12:48:34 +08:00
juanvallejo
90d76adb4b
add Local and Unstructured builder attributes
...
Moves DisabledClientMapperForMapping wrapper to new Local attribute.
Removes Factory#NewUnstructuredBuilder in favor of new Unstructured
builder attribute.
2017-09-05 11:57:00 -04:00
Di Xu
be0cadde2e
enforce include-uninitialized in several kubectl commands
2017-08-31 16:30:56 +08:00
ymqytw
b776df8a20
move i18n to kubectl/util
2017-08-16 12:27:36 -07:00
chandanmad
f3ac55725d
Changes for updating serviceaccount of a resource.
2017-08-14 12:41:19 +05:30