|
|
|
@ -33,7 +33,7 @@ it can be a Slack, Microsoft Teams, Discord or Rocket webhook URL.
|
|
|
|
|
Create a notification provider for Slack by referencing the above secret:
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
apiVersion: notification.toolkit.fluxcd.io/v1alpha1
|
|
|
|
|
apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
|
|
|
|
kind: Provider
|
|
|
|
|
metadata:
|
|
|
|
|
name: slack
|
|
|
|
@ -57,7 +57,7 @@ Elasticsearch, CloudWatch, Stackdriver, etc.
|
|
|
|
|
Create an alert definition for all repositories and kustomizations:
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
apiVersion: notification.toolkit.fluxcd.io/v1alpha1
|
|
|
|
|
apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
|
|
|
|
kind: Alert
|
|
|
|
|
metadata:
|
|
|
|
|
name: on-call-webapp
|
|
|
|
@ -137,7 +137,7 @@ Creating a git provider is very similar to creating other types of providers.
|
|
|
|
|
The only caveat being that the provider address needs to point to the same
|
|
|
|
|
git repository as the Kustomization resource refers to.
|
|
|
|
|
```yaml
|
|
|
|
|
apiVersion: notification.toolkit.fluxcd.io/v1alpha1
|
|
|
|
|
apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
|
|
|
|
kind: Provider
|
|
|
|
|
metadata:
|
|
|
|
|
name: podinfo
|
|
|
|
@ -149,7 +149,7 @@ spec:
|
|
|
|
|
secretRef:
|
|
|
|
|
name: github
|
|
|
|
|
---
|
|
|
|
|
apiVersion: notification.toolkit.fluxcd.io/v1alpha1
|
|
|
|
|
apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
|
|
|
|
kind: Alert
|
|
|
|
|
metadata:
|
|
|
|
|
name: podinfo
|
|
|
|
|