Describe the bug
The Kueue plugin prevents non-admin users from being able to view namespaced resources (Workloads, LocalQueues) in the UI, even though they do have the appropriate RBAC permissions to get and list those resources in their namespace.
Expected outcome:
Users who have RBAC permissions on a namespace should be able to view the lists of Workloads and LocalQueues, and Headlamp should automatically filter and show the resources for the namespaces to which they have access.
To Reproduce
Steps to reproduce the bug:
- Make a namespace and a service account, for example,
data-scientist in the data-sci namespace.
- Make a
Role that gives get, list, and watch permissions on workloads.kueue.x-k8s.io and localqueues.kueue.x-k8s.io.
- Use a namespace-scoped RoleBinding in the data-sci namespace to bind the Role to the service account.
- Log in to Headlamp using a token that has been generated for the
data-scientist service account.
- In the left sidebar, click on Kueue.
- Click on the tab labelled Workloads.
- Look at the error message: "The Kubernetes credentials you currently have are not authorized to list this page."
Environment (please provide info about your environment):
- Installation type: Linux Desktop App(using flatpak)
- Headlamp Version: latest
main
Other: Kueue Plugin (version 0.1.0-alpha)
Can you fix this issue?
I'll submit a pull request to fix this bug.
Screenshots:

Describe the bug
The Kueue plugin prevents non-admin users from being able to view namespaced resources (Workloads, LocalQueues) in the UI, even though they do have the appropriate RBAC permissions to get and list those resources in their namespace.
Expected outcome:
Users who have RBAC permissions on a namespace should be able to view the lists of
WorkloadsandLocalQueues, and Headlamp should automatically filter and show the resources for the namespaces to which they have access.To Reproduce
Steps to reproduce the bug:
data-scientistin thedata-scinamespace.Rolethat givesget,list, andwatchpermissions onworkloads.kueue.x-k8s.ioandlocalqueues.kueue.x-k8s.io.data-scientistservice account.Environment (please provide info about your environment):
mainOther: Kueue Plugin (version 0.1.0-alpha)
Can you fix this issue?
I'll submit a pull request to fix this bug.
Screenshots: