Skip to content

Type-safe APIs for existing CRDs? #873

Answered by clux
mt-inside asked this question in Q&A
Discussion options

You must be logged in to vote

As it so happens, there is now some high level docs on the different types of typing that we currently support over at https://kube.rs/controllers/object/ from a controller writer POV. Please let me know what you think.

As mentioned above, kopium is indeed the closest thing to this type of magic you describe, but it does not* support generation at run-time, so you're effectively pre-generating the code for all the crds that you wish to support in your app.

There isn't currently any concrete plans for anything more advanced (kopium is evolving at a steady pace), but we are open to good ideas!
you can shoehorn kopium into a CI build step, but it's currently a bit awkward in that it would re…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@mt-inside
Comment options

Comment options

You must be logged in to vote
2 replies
@mt-inside
Comment options

@nightkr
Comment options

Answer selected by mt-inside
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants