mirror of https://github.com/k3s-io/k3s
Job: Add PATCH Pods permission.
This is needed to update ControllerRef during adopt/release.pull/6/head
parent
f502ab6a8b
commit
aa7bc25812
|
@ -152,7 +152,7 @@ func init() {
|
|||
Rules: []rbac.PolicyRule{
|
||||
rbac.NewRule("get", "list", "watch", "update").Groups(batchGroup).Resources("jobs").RuleOrDie(),
|
||||
rbac.NewRule("update").Groups(batchGroup).Resources("jobs/status").RuleOrDie(),
|
||||
rbac.NewRule("list", "watch", "create", "delete").Groups(legacyGroup).Resources("pods").RuleOrDie(),
|
||||
rbac.NewRule("list", "watch", "create", "delete", "patch").Groups(legacyGroup).Resources("pods").RuleOrDie(),
|
||||
eventsRule(),
|
||||
},
|
||||
})
|
||||
|
|
|
@ -492,6 +492,7 @@ items:
|
|||
- create
|
||||
- delete
|
||||
- list
|
||||
- patch
|
||||
- watch
|
||||
- apiGroups:
|
||||
- ""
|
||||
|
|
Loading…
Reference in New Issue