-
Notifications
You must be signed in to change notification settings - Fork 44
graphana operator cannot create events in other namespaces #130
Comments
@eguzki can you describe how you deployed the AMO stack ? The Do we need to allow a clusterrole (https://github.com/integr8ly/application-monitoring-operator/blob/master/deploy/cluster-roles/grafana-operator-clusterrole.yaml) to do create |
The grafana operator tries to create events in another namespace, hence the permissions should be added in the clusterrole (clusterbindingroles cannot be created using local roles) |
I think this is due to https://github.com/integr8ly/grafana-operator/blob/master/pkg/controller/grafanadashboard/dashboard_controller.go#L281 dashboard errors are recorded in the namespace of the dashboard CR (because we have one dashboard controller per namespace) |
If we give the clusterrole permission to create events, these will show in the event log right? So would be nice to have imo anyway. |
The grafana operator tries to create events and link to grafana objects, but the clusterrole does not have required roles to create events.
The error logged is:
The text was updated successfully, but these errors were encountered: