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

Failed to watch *v1beta1.HelmChart: failed to list *v1beta1.HelmChart: #50

Closed ksiuda93 closed 2 years ago

ksiuda93 commented 2 years ago

Hey

I was trying to bootstrap the cluster but the source-controller has some issues with helmchart permission:

E0203 20:44:03.400987 1 reflector.go:138] k8s.io/client-go@v0.23.1/tools/cache/reflector.go:167: Failed to watch *v1beta1.HelmChart: failed to list *v1beta1.HelmChart: helmcharts.source.toolkit.fluxcd.io is forbidden: User "system:serviceaccount:flux-system:source-controller" cannot list resource "helmcharts" in API group "source.toolkit.fluxcd.io" at the cluster scope

ksiuda93 commented 2 years ago

It's really strange issue on my local kind cluster everything is working properly. The problem exists on Azure AKS and it's related with service account permission. I am closing it without any solution.