-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operator attempting to apply namepace scoped GrafanaNotificationPolicy to all Grafanas #1738
Comments
Thanks for the report! I'll try to reproduce the issue this week and provide a fix! |
It seems this issue is not limited to GrafanaNotificationPolicies. For example, I have 2 Grafana instances deployed by the operator, each in different namespaces. Both Grafana instances have the same label. In one of those namespaces I deploy a GrafanaDashboard which matches the label of the Grafana in the instanceSelector. Although this label matches both Grafana instances, I would only expect the dashboard to be applied to the Grafana which exists in the same namespace. The .status field of the GrafanaDashboard says the "Dashboard was successfully applied to 2 instances" but it should only have applied to the Grafana that exists in the same namespace.
The Grafana operator pod log confirms it has identified 2 matching instances
If I check the Grafana instance that exists in the other namespace, the dashboard has not been created. |
@marpears did you set |
There is a potential bug here: https://github.com/grafana/grafana-operator/blob/master/controllers/dashboard_controller.go#L246 @marpears what Operator version were you using when you saw that issue? Edit: we updated to Go 1.22 starting in version 5.9.1: 0988f65 |
Thanks @pb82 we're using Grafana Operator version 5.14. We don't have I see the same problem also affecting GrafanaNotificationPolicy and GrafanaFolder CRs. |
This issue hasn't been updated for a while, marking as stale, please respond within the next 7 days to remove this label |
I missed the stale warning due to Christmas holidays - but this is still an issue. Hi @theSuess can this be re-opened please? |
I am having a simialr problem but with 1 Grafana and 1 namespace. It worked once and after a redeployment with no changes it can't seem to find the instance. The Contact Points and Dashboard CRs all applied correctly. Everything pointing to the same Instance Label. message: Notification Policy was successfully applied to 0 instances │ |
@mpham-brc have you tried this with the latest version of the operator? This issue should be fixed as of 5.16 |
Describe the bug
When multiple Grafana instances exist in the same cluster and a GrafanaNotificationPolicy is created, the operator attempts to apply it to all Grafana instances
Version
5.14.0
To Reproduce
Steps to reproduce the behavior:
GrafanaNotificationPolicy to all 8 of them and is only succeeding in one.
Expected behavior
The GrafanaNotificationPolicy should only be applied to the Grafana in the same namespace
Suspect component/Location where the bug might be occurring
unknown
Runtime (please complete the following information):
Additional information
Example GrafanaNotificationPolicy
The text was updated successfully, but these errors were encountered: