-
Notifications
You must be signed in to change notification settings - Fork 17
Description
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, etc
Steps to reproduce
- Install crd2pulumi
- mkdir myfiles
- cd myfiles
- Download https://github.com/kyverno/kyverno/blob/v1.8.5/config/install.yaml
- Run:
crd2pulumi install.yaml --go cd crds/kubernetes/kyverno/v2beta1/- Notice that there is a
pulumiTypes.goand apulumiTypes1.gofile. - Both files contain this exact code:
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).