Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scoped cache config for NROP namespace and cluster resources
This ensures the informer can successfully watch and list Service objects. Without this restriction, the operator will encounter the following failures: reflector.go:561] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers.go:106: failed to list *v1.Service: services is forbidden: User "system:serviceaccount:numaresources:numaresources-controller-manager" cannot list resource "services" in API group "" at the cluster scope reflector.go:158] "Unhandled Error" err="sigs.k8s.io/controller-runtime/pkg/cache/internal/informers.go:106: Failed to watch *v1.Service: failed to list *v1.Service: services is forbidden: User \"system:serviceaccount:numaresources:numaresources-controller-manager\" cannot list resource \"services\" in API group \"\" at the cluster scope" logger="UnhandledError" Signed-off-by: Ronny Baturov <[email protected]>
- Loading branch information