Clayton Coleman
7f9dfe58f4
Use CodecFactory.WithoutConversion() everywhere
...
Clarifies that requesting no conversion is part of the codec factory, and
future refactors will make the codec factory less opionated about conversion.
2019-04-03 22:19:13 -04:00
Ilya Dmitrichenko
6d7a9048b6
Move printers & resources packages
...
These packages deserve to live at the top level of `k8s.io/cli-runtime`,
as they are potentially of wider use than genericclioptions.
2019-03-07 23:00:24 +00:00
Vikranth Thati
f72072cd60
Allow setting images for initContainers through kubectl set command.
2019-01-10 22:28:26 +05:30
Maciej Szulik
55d5df8a36
React to moves
2018-10-06 18:44:05 +02:00
Sean Sullivan
69c0fb74df
kubectl set tests: remove testapi core dependency
2018-10-02 22:40:43 -07:00
Maciej Szulik
5b55e1f8ed
Create cli-runtime staging repository
2018-08-21 17:08:30 +02:00
David Eads
c85e69aeb9
remove unnecessary factory delegation for RESTClientGetter method
2018-05-28 15:12:41 +02:00
juanvallejo
d1603c9560
move PrintOptions to genericclioptions
2018-05-21 14:59:41 -04:00
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
a53a72e238
udpate some examples to use external types
2018-05-04 13:02:49 -04:00
David Eads
8c1b687356
update more commands for iostreams
2018-04-25 08:45:15 -04:00
David Eads
484d81ab01
use recordFlags
2018-04-19 08:50:01 -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
juanvallejo
8d35f94d51
use temp kubeconfig for fake factory
2018-03-09 15:53:19 -05:00
Manuel de Brito Fontes
02370e529b
Remove cassandra example
2018-02-26 20:39:07 -03:00
David Eads
6047ead2e5
simplify kubectl testing factory
2018-02-23 08:02:53 -05: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
Kubernetes Submit Queue
bb500a73b6
Merge pull request #59353 from juanvallejo/jvallejo/update-name-printer-output
...
Automatic merge from submit-queue. 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>.
update name printer output to kind.group/name
**Release note**:
```release-note
NONE
```
Followup to https://github.com/kubernetes/kubernetes/pull/59227
Updates output via `-o name` to be pipeable.
cc @deads2k
2018-02-15 10:37:19 -08:00
juanvallejo
765f9ec68b
update -o name format to kind.group/name
2018-02-15 10:33:06 -05:00
Di Xu
48388fec7e
fix all the typos across the project
2018-02-11 11:04:14 +08:00
Clayton Coleman
b366afa00a
Move category expander out of kubectl/resource
2017-11-14 17:38:16 -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
zhengjiajin
dd9ab89e31
fix issue( #52994 )kubectl set resource can not update multi resource in local
2017-10-26 15:33:22 +08:00
Solly Ross
eac2049fc9
[client-go] avoid Registry in fake REST client
...
Previously, the fake RESTClient in client-go required a Registry. It
used the Registry to fetch the GroupVersion for the fake client.
However, the way it did so was dubious in some cases (it hard-coded the
default API group in places), and not strictly necssary.
This updates the fake client to just recieve the GroupVersion and
internal group name directly, instead of requiring a Registry, so that
it can be consumed in unit tests where a Registry isn't necessarily
readily available (e.g. elsewhere in client-go).
2017-10-19 11:01:44 -04:00
Dr. Stefan Schimanski
7773a30f67
pkg/api/legacyscheme: fixup imports
2017-10-18 17:23:55 +02:00
zhengjiajin
ddcbc47f18
add test for set image validation
2017-05-19 12:15:49 +08:00
Suyog Barve
05131c627f
use of --local should completely eliminate communication with API server
...
fix testcase use of --local should completely eliminate communication with API server
2017-05-03 15:57:57 -05:00
Clayton Coleman
2aa4abb73b
Refactor commands to use new factory method
2017-02-23 00:28:32 -05:00
deads2k
502bfdf944
client/restclient/fake move to client-go
2017-01-25 08:29:48 -05:00
deads2k
ee6752ef20
find and replace
2017-01-20 08:04:53 -05:00
deads2k
f1176d9c5c
mechanical repercussions
2017-01-13 08:27:14 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Chao Xu
fd2fdfba89
move client/unversioned/fake to client/restclient/fake
2016-10-29 14:22:02 -07:00
Angus Salkeld
d58554a647
Move the common test functions from cmd_test.go to cmd/testing/fake.go
...
This is so that we can use NewAPIFactory() from cmd/set/*test.go
Up until now we would get a import loop error.
This commit also adds a basic unit test case for cmd/set/set_image.go
2016-10-19 08:53:26 +10:00