You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think, this is expected? The apiserver ultimately has restrictions on what can be in storage (only 1) and what can be served. You can ask for non-stored versions, but the conversion is done on retrieval and is lossy afaikr. It's explored a bit in the https://github.com/kube-rs/kube/blob/main/examples/crd_derive_multi.rs example.
If you have ideas or other information, happy to hear them though!
clux
added
question
Direction unclear; possibly a bug, possibly could be improved.
crd
related to custom resource definitions
labels
Dec 12, 2024
clux
changed the title
kube::Api lists resources of all versionskube::Api lists crd resources of all versions
Dec 12, 2024
Current and expected behavior
kube::Api
always lists resources of all versions, which causes deserialization errors. Code snippet to reproduce:Not sure if this is the intended behavior, but I expected only resources of the exact version to be listed.
Possible solution
No response
Additional context
No response
Environment
Client Version: v1.31.1
Kustomize Version: v5.4.2
Server Version: v1.31.0
Configuration and features
Affected crates
kube-client
Would you like to work on fixing this bug?
yes
The text was updated successfully, but these errors were encountered: