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, etc
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).
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 gcHost 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.0crd2pulumi version
v1.2.3Additional 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).