Skip to content
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

Support contact points with multiple receivers #1529

Open
theSuess opened this issue May 10, 2024 · 2 comments
Open

Support contact points with multiple receivers #1529

theSuess opened this issue May 10, 2024 · 2 comments
Labels
enhancement New feature or request triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@theSuess
Copy link
Member

Newer versions of Grafana support a one-to-may mapping of contact points to receivers. However, the operator only supports one receiver per contact point.

Implementing this will probably break CRD compatibility, so we'll have to consider this carefully.

@theSuess theSuess added enhancement New feature or request needs triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 10, 2024
@theSuess theSuess added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 13, 2024
@chenlujjj
Copy link
Contributor

How about adding a new CRD GrafanaContactPointV2 to keep compatible

@chenlujjj
Copy link
Contributor

Hi @theSuess , I think I find a work around for this requirement, just declare multiple GrafanaContactPoint object with the same spec.name, like:

---
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaContactPoint
metadata:
  name: grafanacontactpoint-sample-part2
spec:
  name: grafanacontactpoint-sample
  type: "email"
  instanceSelector:
    matchLabels:
      app.kubernetes.io/instance: grafana
  settings:
    addresses: [email protected];[email protected]
---
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaContactPoint
metadata:
  name: grafanacontactpoint-sample-part3
spec:
  name: grafanacontactpoint-sample
  type: "email"
  instanceSelector:
    matchLabels:
      app.kubernetes.io/instance: grafana
  settings:
    addresses: [email protected]

Image

It's not very elegant, but works at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

2 participants