Merge pull request #42626 from xilabao/patch-9

Automatic merge from submit-queue (batch tested with PRs 41890, 42593, 42633, 42626, 42609)

add "use" to validResourceVerbs

ref to https://github.com/kubernetes/kubernetes/issues/17637
This commit is contained in:
Kubernetes Submit Queue 2017-03-07 08:10:44 -08:00 committed by GitHub
commit 6466e34a9a
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ var (
kubectl create role pod-reader --verb=get --verg=list --verb=watch --resource=pods --resource-name=readablepod`)
// Valid resource verb list for validation.
validResourceVerbs = []string{"*", "get", "delete", "list", "create", "update", "patch", "watch", "proxy", "redirect", "deletecollection"}
validResourceVerbs = []string{"*", "get", "delete", "list", "create", "update", "patch", "watch", "proxy", "redirect", "deletecollection", "use"}
)
type CreateRoleOptions struct {