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
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
PhilipGough
027d15e58c
Allow env from resource with keys & updated tests
2018-05-22 09:04:45 +01: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
Maciej Szulik
b7d4f15965
Remove Factory from more Run commands
2018-04-30 19:58:54 +02:00
David Eads
8c1b687356
update more commands for iostreams
2018-04-25 08:45:15 -04:00
juanvallejo
2a202cf49a
update PrintFlags#Complete to receive string template
2018-04-06 16:44:40 -04:00
juanvallejo
4b4b6c879a
begin wiring printflags through set cmds
2018-04-05 16:34:51 -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
a0cb7a7940
Revert "Allow env to be updated via specific key in resource"
...
This reverts commit 905a0698fa
.
2018-02-23 13:31:42 -05:00
David Eads
6047ead2e5
simplify kubectl testing factory
2018-02-23 08:02:53 -05:00
Kubernetes Submit Queue
c85ede510b
Merge pull request #60040 from PhilipGough/keys-from-cm
...
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>.
Allow env to be updated via specific key in resource
**What this PR does / why we need it**:
This change allows users of the `oc` client to specify a list of comma-separated keys when running `oc set env` which should be imported from a resource i.e configmap or secret
This can be useful when a number of applications want to share a configuration object but don't want to pollute a resource with unused environment
**Release note**:
```release-note
Allow kubectl env to specify which keys to import from a config map
```
2018-02-22 06:08:55 -08:00
PhilipGough
905a0698fa
Allow env to be updated via specific key in resource
2018-02-22 11:00:55 +00: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
765f9ec68b
update -o name format to kind.group/name
2018-02-15 10:33:06 -05: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
357db0c39c
Add kubectl set env command
2017-08-25 19:53:22 +08:00