Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to list *v1.Namespace: the server could not find the requested resource #862

Open
riddhichheda03 opened this issue Mar 6, 2025 · 4 comments

Comments

@riddhichheda03
Copy link

Hi,
We are trying to deploy reloader on openshift v4.16 and we are using namespaceselector to monitor specific namespaces. And we have given all the necessary access to the SA.
We are getting below error:
time="2025-03-06T14:19:39Z" level=info msg="Starting Controller to watch resource type: secrets"
W0306 14:19:39.762652 1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.Namespace: the server could not find the requested resource
E0306 14:19:39.762726 1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.Namespace: failed to list *v1.Namespace: the server could not find the requested resource" logger="UnhandledError"

Could you please help us on this?

@MuneebAijaz
Copy link
Contributor

hi @riddhichheda03 is the cluster under load, how many namespaces do you have in the cluster? and which version of reloader is running

@riddhichheda03
Copy link
Author

Without using namespaceselector it is able to monitor the secrets and config for my specified namespaces. But with namespaceselector it gives above error.

@MuneebAijaz
Copy link
Contributor

Can you share what namespace selector are you using? And are you able to see namespaces with that selector using kubectl get ns -l <selector>

@riddhichheda03
Copy link
Author

riddhichheda03 commented Mar 6, 2025

yes, I am using namespaceselector as "managedby=test".
oc get ns -l managedby=test
NAME STATUS AGE
test-project1 Active 407d
test-project2 Active 226d

We have deployed reloader 1.3 using helm.
Also how can we monitor multiple namesapces ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants