-
-
Notifications
You must be signed in to change notification settings - Fork 325
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
Generated CRD object uses inflected plural form over explicitly specified #480
Comments
I believe extending our That is what #468 wants to do, but it got a little sidelined by the big Resource/Meta restructurings. I'll see if I can get that moving again. |
Although, looking at the code, I'm a bit confused of why this is happening as is. The let crd_meta_name = format!("{}.{}", plural, group);
let crd_meta = quote! { { "name": #crd_meta_name } }; |
Yeah, setting The abridged output of your example is actually:
So this is slightly invalid. The point that Pavel brings up is that while the CRD is correct, the url generation does not use that, because that information is not contained in our Meta/Resource trait. |
Closing in favour of #467 |
Reported on Discord by @Pscheidl
Basically, this
struct
:Generates this (abridged) CRD:
When it should be:
The text was updated successfully, but these errors were encountered: