Skip to content

Commit

Permalink
docs: add example for contact point overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
theSuess committed Oct 3, 2024
1 parent 6c9c662 commit e50d440
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/contactpoint_override/README.md
Original file line number Diff line number Diff line change
@@ -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" >}}
25 changes: 25 additions & 0 deletions examples/contactpoint_override/resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
kind: Secret
metadata:
name: contact-mails
stringData:
alert-mails: "[email protected]"
---
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

0 comments on commit e50d440

Please sign in to comment.