Allow the persistent volume binder to watch events

This commit is contained in:
Jordan Liggitt 2017-01-09 23:28:22 -05:00
parent c59c11eb0d
commit 6d3b06125e
No known key found for this signature in database
GPG Key ID: 24E7ADF9A3B42012
2 changed files with 10 additions and 0 deletions

View File

@ -188,6 +188,9 @@ func init() {
rbac.NewRule("get", "create", "delete").Groups(legacyGroup).Resources("services", "endpoints").RuleOrDie(),
rbac.NewRule("get").Groups(legacyGroup).Resources("secrets").RuleOrDie(),
// recyclerClient.WatchPod
rbac.NewRule("watch").Groups(legacyGroup).Resources("events").RuleOrDie(),
eventsRule(),
},
})

View File

@ -649,6 +649,13 @@ items:
- secrets
verbs:
- get
- apiGroups:
- ""
attributeRestrictions: null
resources:
- events
verbs:
- watch
- apiGroups:
- ""
attributeRestrictions: null