crd2pulumi
crd2pulumi copied to clipboard
Ensure type tokens use crd package name
The type tokens generated in crd2pulumi may use the kubernetes package in their names, causing unexpected codegen output. This is not an intended feature of codegen.
Type references in the schema generated by crd2pulumi should either be external references if they refer to valid Kubernetes types, or as in the case below, be generated into the types map of the schema using the package name of the crd package, not, e.g. kubernetes.
See:
- pulumi/pulumi#12624
Note that this would only work for types. The generated CRD resources would have to remain kubernetes in order for them to work correctly at runtime.
Added to epic https://github.com/pulumi/home/issues/3431