From e50d4401de775b4727ec2375aa024049294a7c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=BC=C3=9F?= Date: Thu, 3 Oct 2024 14:07:56 +0200 Subject: [PATCH] docs: add example for contact point overrides --- examples/contactpoint_override/README.md | 8 ++++++ examples/contactpoint_override/resources.yaml | 25 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 examples/contactpoint_override/README.md create mode 100644 examples/contactpoint_override/resources.yaml diff --git a/examples/contactpoint_override/README.md b/examples/contactpoint_override/README.md new file mode 100644 index 000000000..362862ae1 --- /dev/null +++ b/examples/contactpoint_override/README.md @@ -0,0 +1,8 @@ +--- +title: "Contact point overrides" +linkTitle: "Contact point overrides" +--- + +Contact point overrides allow you to set configuration values using secrets or configmaps instead of directly in the resource + +{{< readfile file="resources.yaml" code="true" lang="yaml" >}} diff --git a/examples/contactpoint_override/resources.yaml b/examples/contactpoint_override/resources.yaml new file mode 100644 index 000000000..6bd3474e1 --- /dev/null +++ b/examples/contactpoint_override/resources.yaml @@ -0,0 +1,25 @@ +apiVersion: v1 +kind: Secret +metadata: + name: contact-mails +stringData: + alert-mails: "foo@example.com" +--- +apiVersion: grafana.integreatly.org/v1beta1 +kind: GrafanaContactPoint +metadata: + name: grafanacontactpoint-sample +spec: + name: grafanacontactpoint-sample + type: "email" + instanceSelector: + matchLabels: + instance: my-grafana-stack + settings: + subject: 'Grafana Alert' + valuesFrom: + - targetPath: addresses + valueFrom: + secretKeyRef: + name: contact-mails + key: alert-mails