crd2pulumi icon indicating copy to clipboard operation
crd2pulumi copied to clipboard

[TypeScript/Python] Missing definitions in generated code

Open aureq opened this issue 3 years ago • 2 comments

Hello!

  • 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)

Issue details

AWS EKS has a CRD to apply security groups on pods. Using crd2pulumi (1.0.10) to create a TypeScript package, it seems some/all properties are missing from the generated package.

Steps to reproduce

  1. Launch an EKS cluster (1.21)
  2. Retrieve the CRD (or use the attached archive): kubectl get crd securitygrouppolicies.vpcresources.k8s.aws -oyaml > securitygrouppolicies.crd.yaml
  3. Generate the package: crd2pulumi --nodejs --nodejsName eks-securitygroup-policies --nodejsPath eks-crd/eks-securitygroup-policies securitygrouppolicies.crd.yaml
  4. Properties such as podSelector, securityGroups and serviceAccountSelector are all missing from the generated package

Expected: The generated package contains the same properties as declared in the YAML file Actual: Properties mentioned above are missing

Attachments

securitygrouppolicies.crd.zip

aureq avatar Nov 06 '21 06:11 aureq

Hi folks - just a bump on this. Any idea if/ when how we can fix or workaround?

followben avatar Jan 06 '22 04:01 followben

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

cleverguy25 avatar Aug 09 '24 23:08 cleverguy25