-
Notifications
You must be signed in to change notification settings - Fork 17
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
Duplicate declarations in generated Golang code #72
Comments
Hi, thanks for filing this issue. Do you currently have a workaround? Do you have any suspicion why it's generating it twice for this CRD - have you seen this issue with other CRDs? |
I'm getting this kind of thing with the Python generation. It specifically occurs in
My solution is just to manually remove the duplicate parameters from the generated code and it works. EDIT: I'm using CRDs for Istio and cert-manager, which both have this issue. |
@dragos240 I am doing the exact same thing and finding the same problem. @danielrbradley Do you have any plans to fix this? I may be able to take a look at the GoLang code and try to fix it, but I have no experience whatsoever in GoLang, so I'm not 100% sure how easy it would be for me :/ |
Added to epic https://github.com/pulumi/home/issues/3431 |
this is the same as #104 |
Hello!
Issue details
When one attempts to use the
crd2pulumi
binary to generate a library from a CRD, the GoLang code errors due to duplicate declarations. Example image attached.Steps to reproduce
crd2pulumi --goPath ./internal/argorollouts install.yaml
Expected: Pulumi will generate a working Golang implementation of the CRD
Actual: The GoLang generated by Pulumi is not valid.
The text was updated successfully, but these errors were encountered: