Skip to content

Missing RBAC permissions for VolumeAttributesClass #1033

@lassebm

Description

@lassebm

What happened:

Deployed 4.13.0 with Helm chart and now observing csi-resizer errors about missing RBAC permissions for VolumeAttributesClass:

csi-resizer E0204 12:09:06.441805       1 reflector.go:205] "Failed to watch" err="failed to list *v1.VolumeAttributesClass: volumeattributesclasses.storage.k8s.io is forbidden: User \"system:serviceaccount:kube-system:csi-nfs-controller-sa\" cannot list resource \"volumeattributesclasses\" in API group \"storage.k8s.io\" at the cluster scope" logger="UnhandledError" reflector="k8s.io/client-go/informers/factory.go:160" type="*v1.VolumeAttributesClass"
csi-resizer E0204 12:09:37.573501       1 reflector.go:205] "Failed to watch" err="failed to list *v1.VolumeAttributesClass: volumeattributesclasses.storage.k8s.io is forbidden: User \"system:serviceaccount:kube-system:csi-nfs-controller-sa\" cannot list resource \"volumeattributesclasses\" in API group \"storage.k8s.io\" at the cluster scope" logger="UnhandledError" reflector="k8s.io/client-go/informers/factory.go:160" type="*v1.VolumeAttributesClass"
csi-resizer E0204 12:10:34.623929       1 reflector.go:205] "Failed to watch" err="failed to list *v1.VolumeAttributesClass: volumeattributesclasses.storage.k8s.io is forbidden: User \"system:serviceaccount:kube-system:csi-nfs-controller-sa\" cannot list resource \"volumeattributesclasses\" in API group \"storage.k8s.io\" at the cluster scope" logger="UnhandledError" reflector="k8s.io/client-go/informers/factory.go:160" type="*v1.VolumeAttributesClass"
csi-resizer E0204 12:11:20.079205       1 reflector.go:205] "Failed to watch" err="failed to list *v1.VolumeAttributesClass: volumeattributesclasses.storage.k8s.io is forbidden: User \"system:serviceaccount:kube-system:csi-nfs-controller-sa\" cannot list resource \"volumeattributesclasses\" in API group \"storage.k8s.io\" at the cluster scope" logger="UnhandledError" reflector="k8s.io/client-go/informers/factory.go:160" type="*v1.VolumeAttributesClass"

What you expected to happen:

Required RBAC permissions deployed and no errors logged.

How to reproduce it:

Deploy 4.13.0 with Helm chart.

Anything else we need to know?:

Not reproducible with 4.12.1.

Environment:

  • CSI Driver version: 4.13.0
  • Kubernetes version (use kubectl version): 1.34.3
  • OS (e.g. from /etc/os-release): Debian 13 (trixie)
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions