Skip to content

Getting unhandled exception for getting secrets at cluster level with latest main #7683

@kannon92

Description

@kannon92

What happened:

  {"level":"error","ts":"2025-11-15T15:52:40.054785869Z","logger":"controller-runtime.cache.UnhandledError","caller":"runtime/runtime.go:221","msg":"Failed to watch","reflector":"sigs.k8s.io/controller-runtime/pkg/cache/internal/informers.go:114","type":"*v1.Secret","error":"failed to list *v1.Secret: secrets is forbidden: User \"system:serviceaccount:openshift-kueue-operator:kueue-controller-manager\" cannot list resource \"secrets\" in API group \"\" at the cluster scope

openshift/kueue-operator#917

I am updating our openshift operator to point to main to test against latest main.

I was trying to see if I can run the e2e against an openshift kueue installation.

What you expected to happen:

I shouldnt see errors like this in our operator logs.

How to reproduce it (as minimally and precisely as possible):

Openshift tend to be more restrictive about RBAC so you may be able to reproduce this if you deploy main to a OCP cluster.

https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_kueue-operator/917/pull-ci-openshift-kueue-operator-main-test-e2e-4-18/1989716339769479168/artifacts/test-e2e-4-18/e2e-kueue/build-log.txt

Anything else we need to know?:

The failure happens on k8s 1.31, 1.32 and 1.33.

Environment:

  • Kubernetes version (use kubectl version):
  • Kueue version (use git describe --tags --dirty --always):
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions