add patch RS to deployment controller

pull/6/head
deads2k 2017-01-16 12:44:25 -05:00
parent 8fa23586cf
commit 56c0ae6456
2 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,7 @@ func init() {
Rules: []rbac.PolicyRule{
rbac.NewRule("get", "list", "watch", "update").Groups(extensionsGroup).Resources("deployments").RuleOrDie(),
rbac.NewRule("update").Groups(extensionsGroup).Resources("deployments/status").RuleOrDie(),
rbac.NewRule("get", "list", "watch", "create", "update", "delete").Groups(extensionsGroup).Resources("replicasets").RuleOrDie(),
rbac.NewRule("get", "list", "watch", "create", "update", "patch", "delete").Groups(extensionsGroup).Resources("replicasets").RuleOrDie(),
// TODO: remove "update" once
// https://github.com/kubernetes/kubernetes/issues/36897 is resolved.
rbac.NewRule("get", "list", "watch", "update").Groups(legacyGroup).Resources("pods").RuleOrDie(),

View File

@ -232,6 +232,7 @@ items:
- delete
- get
- list
- patch
- update
- watch
- apiGroups: