Skip to content

Can't create 3rd party CRD #1296

Closed Answered by clux
benkeil asked this question in Q&A
Sep 12, 2023 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

404 makes me think that maybe you are using Api::all_with on a namespaced resource, but that's just a hunch. Is that what you are doing? If so try Api::namespaced_with. See #1276 for some context of why you need both an Api::namespaced and an Api::all atm if you want to do both global lists + namespaced create/get.

Btw, I see you are using Object and a dynamic api on top even though you have typed structs. You don't need to use the dynamic api for this. You could import kube::CustomResource with the derive feature and add

#[derive(CustomResource)]
#[kube(group = "tf.galleybytes.com" version = "v1beta1")]
#[kube(namespaced)] // if you are namespaced
struct TerraformSpec { ..as_before() }

s…

Replies: 2 comments 5 replies

Comment options

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

You must be logged in to vote
5 replies
@clux
Comment options

@clux
Comment options

@benkeil
Comment options

@clux
Comment options

@benkeil
Comment options

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