Commit aa7bc258 authored by Anthony Yeh's avatar Anthony Yeh

Job: Add PATCH Pods permission.

This is needed to update ControllerRef during adopt/release.
parent f502ab6a
......@@ -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:
- ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment