Fix daemon-set-controller bootstrap RBAC policy

Signed-off-by: Ferran Rodenas <rodenasf@vmware.com>
pull/8/head
Ferran Rodenas 2018-04-04 22:16:01 +02:00
parent 7fed970f36
commit 7dfe037712
2 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,7 @@ func buildControllerRoles() ([]rbac.ClusterRole, []rbac.ClusterRoleBinding) {
rbac.NewRule("list", "watch").Groups(legacyGroup).Resources("nodes").RuleOrDie(),
rbac.NewRule("list", "watch", "create", "delete", "patch").Groups(legacyGroup).Resources("pods").RuleOrDie(),
rbac.NewRule("create").Groups(legacyGroup).Resources("pods/binding").RuleOrDie(),
rbac.NewRule("list", "watch", "create", "delete", "update", "patch").Groups(appsGroup).Resources("controllerrevisions").RuleOrDie(),
rbac.NewRule("get", "list", "watch", "create", "delete", "update", "patch").Groups(appsGroup).Resources("controllerrevisions").RuleOrDie(),
eventsRule(),
},
})

View File

@ -239,6 +239,7 @@ items:
verbs:
- create
- delete
- get
- list
- patch
- update