crd2pulumi generator splits types apart into duplicate entires in pulumiTypes.go and pulumiTypes1.go #108
Labels
customer/feedback
Feedback from customers
kind/bug
Some behavior is incorrect or out of spec
p1
A bug severe enough to be the next item assigned to an engineer
resolution/fixed
This issue was fixed
Milestone
What happened?
While running crd2pulumi on CRS for components, we noticed that the generator for Go is splitting the types apart into a pulumiTypes.go and a pulumiTypes1.go. Furthermore, there is some duplication of some type definitions.
Expected Behavior
crd2pulumi install.yaml --go
will not duplicate type definition across pulumiTypes.go files (pulumiTypes.go, pulumiTypes1.go, etcSteps to reproduce
crd2pulumi install.yaml --go
cd crds/kubernetes/kyverno/v2beta1/
pulumiTypes.go
and apulumiTypes1.go
file.type ClusterPolicySpecRulesImageextractorsArrayMap map[string]ClusterPolicySpecRulesImageextractorsArrayInput
Output of
pulumi about
pulumi about
CLI
Version 3.58.0
Go Version go1.20.2
Go Compiler gc
Host
OS darwin
Version 11.7.4
Arch x86_64
Backend
Name pulumi.com
URL https://app.pulumi.com/tushar-pulumi-corp
User tushar-pulumi-corp
Organizations ***
pulumi version
v3.58.0
crd2pulumi version
v1.2.3
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: