Skip to content

Commit d0645f1

Browse files
authored
Merge pull request #1099 from fluxcd/3rd-pary-notifications
Add example for enabling notifications for 3rd party controllers
2 parents 2fb1b17 + a48aaec commit d0645f1

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

content/en/docs/cheatsheets/bootstrap.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,3 +445,40 @@ patches:
445445
kind: Kustomization
446446
name: "flux-system"
447447
```
448+
449+
### Enable notifications for third party controllers
450+
451+
Enable notifications for 3rd party Flux controllers such as [tf-controller](https://github.com/weaveworks/tf-controller):
452+
453+
```yaml
454+
apiVersion: kustomize.config.k8s.io/v1beta1
455+
kind: Kustomization
456+
resources:
457+
- gotk-components.yaml
458+
- gotk-sync.yaml
459+
patches:
460+
- patch: |
461+
- op: add
462+
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/eventSources/items/properties/kind/enum/-
463+
value: Terraform
464+
target:
465+
kind: CustomResourceDefinition
466+
name: alerts.notification.toolkit.fluxcd.io
467+
- patch: |
468+
- op: add
469+
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/resources/items/properties/kind/enum/-
470+
value: Terraform
471+
target:
472+
kind: CustomResourceDefinition
473+
name: receivers.notification.toolkit.fluxcd.io
474+
- patch: |
475+
- op: add
476+
path: /rules/-
477+
value:
478+
apiGroups: [ 'infra.contrib.fluxcd.io' ]
479+
resources: [ '*' ]
480+
verbs: [ '*' ]
481+
target:
482+
kind: ClusterRole
483+
name: crd-controller-flux-system
484+
```

0 commit comments

Comments
 (0)