Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeScript/Python] Missing definitions in generated code #59

Open
aureq opened this issue Nov 6, 2021 · 2 comments
Open

[TypeScript/Python] Missing definitions in generated code #59

aureq opened this issue Nov 6, 2021 · 2 comments
Labels
area/codegen Affects quality or correctness of generated code kind/bug Some behavior is incorrect or out of spec

Comments

@aureq
Copy link
Member

aureq commented Nov 6, 2021

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 aureq added the kind/bug Some behavior is incorrect or out of spec label Nov 6, 2021
@aureq aureq changed the title [TypeScript] Missing definitions in generated code [TypeScript/Python] Missing definitions in generated code Nov 7, 2021
@followben
Copy link

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

@mattolenik mattolenik added the area/codegen Affects quality or correctness of generated code label Jun 2, 2022
@cleverguy25
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/codegen Affects quality or correctness of generated code kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

4 participants