scaleway / scaleway-csi

Container Storage Interface (CSI) Driver for https://www.scaleway.com/block-storage/
Apache License 2.0
57 stars 17 forks source link

Missing roles for CSI resizer? #22

Closed sebastien-prudhomme closed 4 years ago

sebastien-prudhomme commented 4 years ago

Describe the bug

Bug to confirm as I'm using my own Helm chart built on this repository manifests.

When launching the new CSI resizer container, got this errors in logs (the first one appears after fixing the first one):

E0611 15:00:16.112725       1 reflector.go:178] k8s.io/client-go/informers/factory.go:135: Failed to list *v1.Pod: pods is forbidden: User "system:serviceaccount:scaleway-csi:scaleway-csi-controller" cannot list resource "pods" in API group "" at the cluster scope
E0611 15:01:03.299833       1 reflector.go:380] k8s.io/client-go/informers/factory.go:135: Failed to watch *v1.Pod: unknown (get pods)

I had to add this in cluster roles:

  - apiGroups: [""]
    resources: ["pods"]
    verbs: ["list", "watch"]

Details (please complete the following information):

Sh4d1 commented 4 years ago

Hey :wave: Yep don't know how I missed this one :sweat_smile:

Sh4d1 commented 4 years ago

Thanks for the report :smile: