Skip to content

Commit

Permalink
Add patch to events rbac (kubernetes-sigs#1021)
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <[email protected]>
(cherry picked from commit 7365154)
  • Loading branch information
vincepri authored and ncdc committed Jun 25, 2019
1 parent 5e064a5 commit 0ddc8ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions config/rbac/rbac_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ rules:
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- get
- list
- watch
- create
- patch
- apiGroups:
- cluster.k8s.io
resources:
Expand Down Expand Up @@ -91,12 +101,3 @@ rules:
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- get
- list
- watch
- create
2 changes: 1 addition & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
var AddToManagerFuncs []func(manager.Manager) error

// AddToManager adds all Controllers to the Manager
// +kubebuilder:rbac:groups=core,resources=events,verbs=get;list;watch;create
// +kubebuilder:rbac:groups=core,resources=events,verbs=get;list;watch;create;patch
func AddToManager(m manager.Manager) error {
for _, f := range AddToManagerFuncs {
if err := f(m); err != nil {
Expand Down

0 comments on commit 0ddc8ce

Please sign in to comment.