diff --git a/cmd/tk/main.go b/cmd/tk/main.go index 5afaa56e..438cfd70 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", "notification-controller"}, + []string{"source-controller", "kustomize-controller", "helm-controller", "notification-controller"}, "list of components, accepts comma-separated values") } diff --git a/manifests/bases/helm-controller/kustomization.yaml b/manifests/bases/helm-controller/kustomization.yaml new file mode 100644 index 00000000..9e0f332b --- /dev/null +++ b/manifests/bases/helm-controller/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/fluxcd/helm-controller/config//crd?ref=v0.0.1-alpha.1 +- github.com/fluxcd/helm-controller/config//manager?ref=v0.0.1-alpha.1 +patchesJson6902: +- target: + group: apps + version: v1 + kind: Deployment + name: helm-controller + path: patch.yaml diff --git a/manifests/bases/helm-controller/patch.yaml b/manifests/bases/helm-controller/patch.yaml new file mode 100644 index 00000000..e5ee6192 --- /dev/null +++ b/manifests/bases/helm-controller/patch.yaml @@ -0,0 +1,3 @@ +- op: add + path: /spec/template/spec/containers/0/args/0 + value: --events-addr=http://notification-controller/ diff --git a/manifests/install/kustomization.yaml b/manifests/install/kustomization.yaml index 95a5835c..4a68ed75 100644 --- a/manifests/install/kustomization.yaml +++ b/manifests/install/kustomization.yaml @@ -6,6 +6,7 @@ resources: - ../bases/source-controller - ../bases/kustomize-controller - ../bases/notification-controller + - ../bases/helm-controller - ../rbac - ../policies transformers: diff --git a/manifests/rbac/role.yaml b/manifests/rbac/role.yaml index a2085be4..83452c60 100644 --- a/manifests/rbac/role.yaml +++ b/manifests/rbac/role.yaml @@ -9,6 +9,9 @@ rules: - apiGroups: ['kustomize.fluxcd.io'] resources: ['*'] verbs: ['*'] +- apiGroups: ['helm.fluxcd.io'] + resources: ['*'] + verbs: ['*'] - apiGroups: ['notification.fluxcd.io'] resources: ['*'] verbs: ['*']