From e594350307db15e9e230b9d830ed4544aed86f60 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Thu, 2 Jul 2020 12:52:55 +0300 Subject: [PATCH] Add notification controller to tk components --- cmd/tk/main.go | 2 +- manifests/bases/notification-controller/kustomization.yaml | 5 +++++ manifests/install/kustomization.yaml | 1 + manifests/rbac/role.yaml | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 manifests/bases/notification-controller/kustomization.yaml diff --git a/cmd/tk/main.go b/cmd/tk/main.go index a25d1fb9..5afaa56e 100644 --- a/cmd/tk/main.go +++ b/cmd/tk/main.go @@ -112,7 +112,7 @@ func init() { rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "", false, "print generated objects") rootCmd.PersistentFlags().StringSliceVar(&components, "components", - []string{"source-controller", "kustomize-controller"}, + []string{"source-controller", "kustomize-controller", "notification-controller"}, "list of components, accepts comma-separated values") } diff --git a/manifests/bases/notification-controller/kustomization.yaml b/manifests/bases/notification-controller/kustomization.yaml new file mode 100644 index 00000000..07291a16 --- /dev/null +++ b/manifests/bases/notification-controller/kustomization.yaml @@ -0,0 +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 diff --git a/manifests/install/kustomization.yaml b/manifests/install/kustomization.yaml index f5e991b0..95a5835c 100644 --- a/manifests/install/kustomization.yaml +++ b/manifests/install/kustomization.yaml @@ -5,6 +5,7 @@ resources: - namespace.yaml - ../bases/source-controller - ../bases/kustomize-controller + - ../bases/notification-controller - ../rbac - ../policies transformers: diff --git a/manifests/rbac/role.yaml b/manifests/rbac/role.yaml index 7a919de3..a2085be4 100644 --- a/manifests/rbac/role.yaml +++ b/manifests/rbac/role.yaml @@ -9,6 +9,9 @@ rules: - apiGroups: ['kustomize.fluxcd.io'] resources: ['*'] verbs: ['*'] +- apiGroups: ['notification.fluxcd.io'] + resources: ['*'] + verbs: ['*'] - apiGroups: - "" resources: