mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
add "use" to validResourceVerbs
This commit is contained in:
parent
302aab9ba2
commit
a01cf0e66b
@ -45,7 +45,7 @@ var (
|
|||||||
kubectl create role pod-reader --verb=get --verg=list --verb=watch --resource=pods --resource-name=readablepod`)
|
kubectl create role pod-reader --verb=get --verg=list --verb=watch --resource=pods --resource-name=readablepod`)
|
||||||
|
|
||||||
// Valid resource verb list for validation.
|
// 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 {
|
type CreateRoleOptions struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user