Skip to content

Commit

Permalink
Merge pull request #1099 from fluxcd/3rd-pary-notifications
Browse files Browse the repository at this point in the history
Add example for enabling notifications for 3rd party controllers
  • Loading branch information
stefanprodan authored Aug 29, 2022
2 parents 2fb1b17 + a48aaec commit d0645f1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions content/en/docs/cheatsheets/bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,3 +445,40 @@ patches:
kind: Kustomization
name: "flux-system"
```
### Enable notifications for third party controllers
Enable notifications for 3rd party Flux controllers such as [tf-controller](https://github.com/weaveworks/tf-controller):
```yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- gotk-components.yaml
- gotk-sync.yaml
patches:
- patch: |
- op: add
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/eventSources/items/properties/kind/enum/-
value: Terraform
target:
kind: CustomResourceDefinition
name: alerts.notification.toolkit.fluxcd.io
- patch: |
- op: add
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/resources/items/properties/kind/enum/-
value: Terraform
target:
kind: CustomResourceDefinition
name: receivers.notification.toolkit.fluxcd.io
- patch: |
- op: add
path: /rules/-
value:
apiGroups: [ 'infra.contrib.fluxcd.io' ]
resources: [ '*' ]
verbs: [ '*' ]
target:
kind: ClusterRole
name: crd-controller-flux-system
```

0 comments on commit d0645f1

Please sign in to comment.