Skip to content

getting crd item(s) without schema #1404

Closed Answered by clux
madelaney asked this question in Q&A
Discussion options

You must be logged in to vote

if you want to iterate over multiple crds in an api group (or just a single kind), but don't have the type at hand that implements Resource, then you need to use dynamic type with discovery to get the type information.

see https://github.com/kube-rs/kube/blob/main/examples/dynamic_api.rs and other dynamic_ examples.
possibly you want a pinned_kind oneshot discovery?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by madelaney
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants