-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
client: Api::all
fails to create namespaced resources
#1030
Comments
That is the reverse of the problem that was fixed in 0.75 by making We decided against putting the hard constraint on However, as you are noticing, It's obviously not ideal, and afaik we can't specialise |
We have a test helper that worked in v0.74 and fails in v0.75:
This seems to be because we use
kube::Api::all
on a namespaced resource (ServiceAccount
). Changing the code to use Api::namespaced fixes the issue, at least.It's surprising that this compiles if it's not going to work properly. Should it work properly? It seems reasonable to have a cluster-wide client for a namespaced resource.
Otherwise, if this is by design, can we do anything to make it harder to build API clients that won't work?
The text was updated successfully, but these errors were encountered: