File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
content/en/docs/cheatsheets Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff 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+ ` ` `
You can’t perform that action at this time.
0 commit comments