[dashboard] Fix StorageClass "Error" in forms by granting RBAC read access by sircthulhu · Pull Request #2267 · cozystack/cozystack

@sircthulhu

… users

The dashboard UI fetches StorageClasses via the Kubernetes API to populate
dropdowns (e.g. in the Postgres form), but the cozystack-dashboard-readonly
ClusterRole did not include storage.k8s.io/storageclasses. This caused
authenticated users to see "Error" instead of the StorageClass name.

Add get/list/watch permissions for storageclasses to the dashboard readonly
role, consistent with the existing backupclasses entry.

Assisted-By: Claude AI
Signed-off-by: Kirill Ilin <stitch14@yandex.ru>

@sircthulhu marked this pull request as ready for review

March 26, 2026 11:26

@dosubot dosubot bot added size:XS

This PR changes 0-9 lines, ignoring generated files.

bug

Something isn't working

labels

Mar 26, 2026

gemini-code-assist[bot]

IvanHunters

@dosubot dosubot bot added the lgtm

This PR has been approved by a maintainer

label

Mar 26, 2026

@sircthulhu sircthulhu deleted the fix/dashboard-storageclass-rbac branch

March 26, 2026 14:57

sircthulhu added a commit that referenced this pull request

Mar 26, 2026
…by granting RBAC read access (#2274)

# Description
Backport of #2267 to `release-1.1`.