Allow the persistent volume binder to watch events

parent c59c11eb
...@@ -188,6 +188,9 @@ func init() { ...@@ -188,6 +188,9 @@ func init() {
rbac.NewRule("get", "create", "delete").Groups(legacyGroup).Resources("services", "endpoints").RuleOrDie(), rbac.NewRule("get", "create", "delete").Groups(legacyGroup).Resources("services", "endpoints").RuleOrDie(),
rbac.NewRule("get").Groups(legacyGroup).Resources("secrets").RuleOrDie(), rbac.NewRule("get").Groups(legacyGroup).Resources("secrets").RuleOrDie(),
// recyclerClient.WatchPod
rbac.NewRule("watch").Groups(legacyGroup).Resources("events").RuleOrDie(),
eventsRule(), eventsRule(),
}, },
}) })
......
...@@ -655,6 +655,13 @@ items: ...@@ -655,6 +655,13 @@ items:
resources: resources:
- events - events
verbs: verbs:
- watch
- apiGroups:
- ""
attributeRestrictions: null
resources:
- events
verbs:
- create - create
- patch - patch
- update - update
......
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