-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add Support for merging multiple different NotificationPolicies #201
Comments
We are having the same issue. We control multiple environments in the different cluster poiting to the same Grafana instance. Everything else works fine, except the NotificationPolicy. It's pretty much impossible with only the CRDs to make that work. This could be similar to the OnCall Integration and OnCall Route approach, where we have the main one with the default and add a route for each condition. |
Have you looked into creating a pipeline function in Crossplane Compositions? That might be a good stepping stone towards solving this in Crossplane land. |
Hey! Yes I have, we use it to sync OnCall Schedules and OnCall Integrations, but as I mentioned, with the ContactPoint and Alerts CRDs on different cluster, there is very little I can do to actually sync all the ContactPoints into the same NotificationPolicy. This is even harder due to how the NotificationPolicy handles non-existent ContactPoints, pretty much refusing to reconsile until one of them is fixed. |
I don't think this should be solved as part of the Crossplane provider, this should probably become a feature request towards the alerting product so that this 'patch' feature can be supported at the API level instead. |
Closing this awaiting upstream to take this into consideration. |
Description
Currently, there is no support for merging NotificationPolicies. Issue #55 proposed a workaround that involves specifying notification settings directly in Grafana alerts. However, this approach only applies to Grafana alerts and does not offer the flexibility or centralized control that NotificationPolicies could provide.
This limitation presents the following challenges:
NotificationPolicy
needs to be adjusted. Otherwise we would need to replicate all alert rules to grafana rules.Proposed Solution
The proposed solution from b-m-f in #55 (comment) would suit us fine: a new CRD, like
NotificationPolicyPatch
, allows to specify a desired addition to theNotificationPolicy.policy
field. The provider would then update theNotificationPolicy
accordingly.The text was updated successfully, but these errors were encountered: