crd2pulumi icon indicating copy to clipboard operation
crd2pulumi copied to clipboard

Ensure type tokens use crd package name

Open AaronFriel opened this issue 2 years ago • 1 comments
trafficstars

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

AaronFriel avatar Apr 13 '23 17:04 AaronFriel

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.

justinvp avatar Apr 13 '23 20:04 justinvp

Added to epic https://github.com/pulumi/home/issues/3431

cleverguy25 avatar Aug 09 '24 23:08 cleverguy25