WanLinghao
83a148310d
Print object should be updated which may cause potential bug.
...
This patch fix this.
modified: pkg/kubectl/cmd/create_clusterrole.go
modified: pkg/kubectl/cmd/create_role.go
2018-03-21 15:34:50 +08:00
Kubernetes Submit Queue
16081cca2b
Merge pull request #61031 from zjj2wry/kubectl_create_role
...
Automatic merge from submit-queue (batch tested with PRs 61003, 61031, 60360, 58349, 60922). 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>.
resource-name not present in the URL for list,watch,deletecollection
**What this PR does / why we need it**:
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #
**Special notes for your reviewer**:
cc @deads2k @liggitt
/sig cli
/sig auth
**Release note**:
```release-note
NONE
```
2018-03-20 18:34:29 -07:00
zhengjiajin
17c9d1fa14
resource-name not present in the URL for list,watch,deletecollection
2018-03-12 16:29:18 +08:00
Di Xu
33b3fb9bed
flag value bindings for kubectl create/get/set commands
2018-02-27 11:00:55 +08: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
juanvallejo
701d6536a2
move cmd/util/printing.go#PrintSuccess to factory_builder.go
2017-11-15 10:46:39 -05:00
ymqytw
4487cc5e15
switch some commands to use its own scheme
2017-10-27 18:31:42 -07:00
ymqytw
b776df8a20
move i18n to kubectl/util
2017-08-16 12:27:36 -07:00
tcharding
be04ad4aca
Correct case for starting character of option string
2017-08-11 07:24:08 +10:00
Cao Shufeng
a59f3490c9
allow impersonate serviceaccount in cli
...
We can impersonate four kinds of resources according to the code:
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/endpoints/filters/impersonation.go#L83
2017-06-29 14:56:46 +08:00
Jordan Liggitt
e8b24679dc
Remove redirect verb parsing
2017-06-21 11:17:24 -04:00
juanvallejo
d036686185
fix --local flag for kubectl set
commands
2017-06-13 12:57:05 -04:00
Cao Shufeng
93e50b167e
support NonResourceURL for kubectl create clusterrole
2017-05-26 10:07:44 +08:00
Kubernetes Submit Queue
ad6a9bb78e
Merge pull request #44950 from xilabao/use-StringArrayVar-for-ResourceName
...
Automatic merge from submit-queue
use StringArrayVar for ResourceName
ref to https://github.com/kubernetes/kubernetes/pull/43903
```release-note
`kubectl create role` and `kubectl create clusterrole` no longer allow specifying multiple resource names as comma-separated arguments. Use repeated `--resource-name` arguments to specify multiple resource names.
```
2017-05-14 19:39:52 -07:00
xilabao
61e53998e5
ResourceName could possibly contain a comma should use StringArray, not StringSlice
2017-05-12 13:11:21 +08:00
xilabao
02deeb224e
fix specialized verbs in create role
2017-05-11 09:32:43 +08:00
xilabao
7bd9ddef60
remove resourcename validation in create role
2017-04-25 09:22:02 +08:00
xilabao
19217bc4a2
support subresource when running kubectl create role
2017-04-24 10:05:47 +08:00
Cao Shufeng
877bf54465
add "bind" and "impersonate" to legal verbs
...
"bind" and "impersonate" are also legal verbs according this:
https://github.com/kubernetes/kubernetes.github.io/pull/2771/files
2017-04-10 03:46:04 -04:00
Brendan Burns
79f51923d3
Extract a bunch more strings from kubectl
2017-04-06 20:12:50 -07:00
xilabao
a01cf0e66b
add "use" to validResourceVerbs
2017-03-07 00:42:24 -06:00
Xing Zhou
433941f1fd
Added kubectl create clusterrole
command.
...
Added `kubectl create clusterrole` command.
2017-02-22 10:30:41 +08:00
xilabao
367006bea4
remove validNonResourceVerbs in create role
2017-02-17 08:52:59 +08:00
Xing Zhou
0a2876d39e
Added kubectl create role command.
...
Added kubectl create role command.
2017-02-08 13:30:03 +08:00