Skip to content
Snippets Groups Projects
Unverified Commit 512d4a43 authored by Stefan Prodan's avatar Stefan Prodan Committed by GitHub
Browse files

Merge pull request #76 from fluxcd/source-events

Enable notifications for source events
parents b7727e26 b9f7b1d1
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ Elasticsearch, CloudWatch, Stackdriver, etc. ...@@ -51,7 +51,7 @@ Elasticsearch, CloudWatch, Stackdriver, etc.
## Define an alert ## Define an alert
Create an alert definition for the webapp kustomizations: Create an alert definition for all repositories and kustomizations:
```yaml ```yaml
apiVersion: notification.fluxcd.io/v1alpha1 apiVersion: notification.fluxcd.io/v1alpha1
...@@ -64,10 +64,10 @@ spec: ...@@ -64,10 +64,10 @@ spec:
name: slack name: slack
eventSeverity: info eventSeverity: info
eventSources: eventSources:
- kind: GitRepository
name: '*'
- kind: Kustomization - kind: Kustomization
name: webapp-backend name: '*'
- kind: Kustomization
name: webapp-frontend
``` ```
Apply the above files or commit them to the `fleet-infra` repository. Apply the above files or commit them to the `fleet-infra` repository.
......
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- github.com/fluxcd/notification-controller/config//crd?ref=v0.0.1-alpha.2 - github.com/fluxcd/notification-controller/config//crd?ref=v0.0.1-beta.1
- github.com/fluxcd/notification-controller/config//manager?ref=v0.0.1-alpha.2 - github.com/fluxcd/notification-controller/config//manager?ref=v0.0.1-beta.1
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- github.com/fluxcd/source-controller/config//crd?ref=v0.0.1 - github.com/fluxcd/source-controller/config//crd?ref=v0.0.2
- github.com/fluxcd/source-controller/config//manager?ref=v0.0.1 - github.com/fluxcd/source-controller/config//manager?ref=v0.0.2
patchesJson6902:
- target:
group: apps
version: v1
kind: Deployment
name: source-controller
path: patch.yaml
- op: add
path: /spec/template/spec/containers/0/args/0
value: --events-addr=http://notification-controller/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment