David Eads
c85e69aeb9
remove unnecessary factory delegation for RESTClientGetter method
2018-05-28 15:12:41 +02:00
juanvallejo
0d3e85608f
move f.Command out of the factory
2018-05-22 13:31:01 -04:00
juanvallejo
0164605d31
remove versioned printer
2018-05-17 17:20:54 -04:00
David Eads
0db40da909
update factory interface to overlap with lower RESTClientGetter
2018-05-17 08:27:53 -04:00
David Eads
fd044d152e
fix dynamic client name
2018-05-11 13:12:09 -04:00
Kubernetes Submit Queue
6203b621ba
Merge pull request #62244 from CaoShuFeng/raw
...
Automatic merge from submit-queue (batch tested with PRs 62244, 63685). 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>.
fix "kubectl create --raw"
Before this change:
```
$ kubectl create -f pod.json --raw=https://172.16.29.130:443/api/v1/namespaces/default/pods --as=tom --as-group=aaaaa
Error from server (Forbidden): unknown
```
After this change:
```
$ kubectl create -f pod.json --raw=https://172.16.29.130:443/api/v1/namespaces/default/pods --as=tom --as-group=aaaaa
Error from server (Forbidden): pods is forbidden: User "tom" cannot create pods in the namespace "default"
```
/assign @soltysh
**Release note**:
```release-note
NONE
```
2018-05-10 16:30:07 -07: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
Kubernetes Submit Queue
4868d7775a
Merge pull request #63511 from juanvallejo/jvallejo/cmd-cleanup
...
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>.
cleanup TODOs from PrintFlags wiring
**Release note**:
```release-note
NONE
```
Address TODOs from PrintFlags wiring
cc @soltysh @deads2k
2018-05-10 14:25:13 -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
juanvallejo
7b1b107ea4
cleanup TODO comments from PrintFlags wiring
2018-05-10 14:03:06 -04:00
David Eads
a53a72e238
udpate some examples to use external types
2018-05-04 13:02:49 -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
1cb797e355
acknowledge that creation of a restmapper can fail and that we cannot have a default
2018-05-01 07:52:51 -04:00
David Eads
5432ef5c45
divide statically known typer from dynamically derive restmapper
2018-04-27 11:15:05 -04:00
David Eads
6fbcbc994f
remove unnecessarily flexibiliy to simplify the resource builder
2018-04-27 09:27:51 -04:00
David Eads
6900f8856f
rest mappings cannot logically be object converters
2018-04-26 12:47:25 -04:00
David Eads
0710f72c65
remove confusing flexibility for metadata interpretation
2018-04-23 13:31:55 -04:00
David Eads
8ef56776b9
provide standard iostream struct for commands
2018-04-20 12:54:11 -04:00
Kubernetes Submit Queue
8e9eb4fcef
Merge pull request #62848 from deads2k/cli-29-more-record
...
Automatic merge from submit-queue (batch tested with PRs 62632, 62789, 62512, 62848). 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>.
use recordFlags to manage recording
This updates the set commands to use the recordflags and updates the commands we're touching to follow the pattern that is emerging. A method for New*Options, a valid default value for a recorder there, using the value `o` everywhere to refer to options, naming the struct `<commandName>Options`.
@kubernetes/sig-cli-maintainers
@soltysh @juanvallejo continues the effort
```release-note
NONE
```
2018-04-19 08:58:20 -07:00
David Eads
484d81ab01
use recordFlags
2018-04-19 08:50:01 -04:00
David Eads
f01e16bb3e
remove flags deprecated in 1.5
2018-04-19 08:08:44 -04:00
David Eads
e2a5c39b23
use record flags
2018-04-18 13:56:59 -04:00
Cao Shufeng
82d101a6fa
fix "kubectl create --raw"
2018-04-17 14:25:20 +08:00
juanvallejo
8a7b2fdda3
begin wiring printopts through complete commands
2018-04-13 11:50:54 -04:00
Maciej Szulik
d12a8a8d48
Move all create subcommands to its own subdirectory
2018-04-12 23:47:31 +02:00