fluxcd / flux2-kustomize-helm-example

A GitOps workflow example for multi-env deployments with Flux, Kustomize and Helm.
https://fluxcd.io
Apache License 2.0
935 stars 992 forks source link

Getting error in nginx when applying Helm Release #46

Closed ronakce closed 2 years ago

ronakce commented 2 years ago

I am getting this error when applying HelmRelease kind. I get this error from logs of the HelmController. Can you please help me on this.

{"level":"error","ts":"2021-12-18T13:47:42.914Z","logger":"controller.helmrelease","msg":"Reconciler error","reconciler group":"helm.toolkit.fluxcd.io","reconciler kind":"HelmRelease","name":"nginx","namespace":"nginx","error":"Helm install failed: unable to build kubernetes objects from release manifest: [unable to recognize \"\": no matches for kind \"ClusterRole\" in version \"rbac.authorization.k8s.io/v1beta1\", unable to recognize \"\": no matches for kind \"ClusterRoleBinding\" in version \"rbac.authorization.k8s.io/v1beta1\", unable to recognize \"\": no matches for kind \"Role\" in version \"rbac.authorization.k8s.io/v1beta1\", unable to recognize \"\": no matches for kind \"RoleBinding\" in version \"rbac.authorization.k8s.io/v1beta1\"]"}

flux get all -- Display that chart and repo are fetched.

NAME READY MESSAGE REVISION SUSPENDED gitrepository/flux-system True Fetched revision: master/065af7d92b738636805ba541f305bf86487e43a5 master/065af7d92b738636805ba541f305bf86487e43a5 False

NAME READY MESSAGE REVISION SUSPENDED helmrepository/bitnami True Fetched revision: 3badadec8260194b80d3719f69bf7009962060043c63e4335b17263c678ccb2b 3badadec8260194b80d3719f69bf7009962060043c63e4335b17263c678ccb2b False

NAME READY MESSAGE REVISION SUSPENDED helmchart/nginx-nginx True Pulled 'nginx-ingress-controller' chart with version '5.6.14'. 5.6.14 False

NAME READY MESSAGE REVISION SUSPENDED kustomization/flux-system True Applied revision: master/065af7d92b738636805ba541f305bf86487e43a5 master/065af7d92b738636805ba541f305bf86487e43a5 False