Merge pull request #76 from fluxcd/source-events
Enable notifications for source events
This commit is contained in:
@@ -51,7 +51,7 @@ Elasticsearch, CloudWatch, Stackdriver, etc.
|
||||
|
||||
## Define an alert
|
||||
|
||||
Create an alert definition for the webapp kustomizations:
|
||||
Create an alert definition for all repositories and kustomizations:
|
||||
|
||||
```yaml
|
||||
apiVersion: notification.fluxcd.io/v1alpha1
|
||||
@@ -64,10 +64,10 @@ spec:
|
||||
name: slack
|
||||
eventSeverity: info
|
||||
eventSources:
|
||||
- kind: GitRepository
|
||||
name: '*'
|
||||
- kind: Kustomization
|
||||
name: webapp-backend
|
||||
- kind: Kustomization
|
||||
name: webapp-frontend
|
||||
name: '*'
|
||||
```
|
||||
|
||||
Apply the above files or commit them to the `fleet-infra` repository.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- github.com/fluxcd/notification-controller/config//crd?ref=v0.0.1-alpha.2
|
||||
- github.com/fluxcd/notification-controller/config//manager?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-beta.1
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- github.com/fluxcd/source-controller/config//crd?ref=v0.0.1
|
||||
- github.com/fluxcd/source-controller/config//manager?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.2
|
||||
patchesJson6902:
|
||||
- target:
|
||||
group: apps
|
||||
version: v1
|
||||
kind: Deployment
|
||||
name: source-controller
|
||||
path: patch.yaml
|
||||
|
||||
3
manifests/bases/source-controller/patch.yaml
Normal file
3
manifests/bases/source-controller/patch.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/args/0
|
||||
value: --events-addr=http://notification-controller/
|
||||
Reference in New Issue
Block a user