Skip to content

Commit

Permalink
Merge pull request grafana#634 from NissesSenap/event_patch
Browse files Browse the repository at this point in the history
RBAC add possability to patch events
  • Loading branch information
pb82 authored Nov 30, 2021
2 parents b2e9438 + c4ce7f8 commit 64685c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ rules:
- create
- get
- list
- patch
- watch
- apiGroups:
- ""
Expand Down
2 changes: 1 addition & 1 deletion controllers/grafana/grafana_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var log = logf.Log.WithName(ControllerName)
// +kubebuilder:rbac:groups=integreatly.org,resources=grafanas;grafanas/finalizers,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=integreatly.org,resources=grafanas/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=extensions;apps,resources=deployments;deployments/finalizers,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups="",resources=events,verbs=get;list;watch;create
// +kubebuilder:rbac:groups="",resources=events,verbs=get;list;watch;create;patch
// +kubebuilder:rbac:groups="",resources=pods,verbs=get;list;watch
// +kubebuilder:rbac:groups="",resources=configmaps;secrets;serviceaccounts;services;persistentvolumeclaims,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=route.openshift.io,resources=routes,verbs=get;list;watch;create;update;patch;delete
Expand Down
1 change: 1 addition & 0 deletions deploy/manifests/latest/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ rules:
- create
- get
- list
- patch
- watch
- apiGroups:
- ""
Expand Down

0 comments on commit 64685c6

Please sign in to comment.