Skip to content

Commit

Permalink
RBAC add possability to patch events
Browse files Browse the repository at this point in the history
This way --scan-all don't have to add any custom clusterroles.
Solves grafana#630
  • Loading branch information
Edvin Norling committed Nov 30, 2021
1 parent b2e9438 commit c4ce7f8
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 c4ce7f8

Please sign in to comment.