Skip to content

[Golang] AWS LB Controller TargetGroupBinding generates empty struct for TargetGroupBindingSpecServiceRefArgs #46

@crielly

Description

@crielly

Essentially, it seems that when generating types from the AWS LB controller's TargetGroupBinding CRD, at least one struct is missing fields (TargetGroupBindingSpecServiceRefArgs).

Expected behavior

I'd expect it to have a Port field:

              serviceRef:
                description: serviceRef is a reference to a Kubernetes Service and
                  ServicePort.
                properties:
                  name:
                    description: Name is the name of the Service.
                    type: string
                  port:
                    anyOf:
                    - type: integer
                    - type: string
                    description: Port is the port of the ServicePort.
                    x-kubernetes-int-or-string: true
                required:
                - name
                - port
                type: object

Current behavior

no fields at all:

type TargetGroupBindingSpecServiceRefPortArgs struct {
}

Steps to reproduce

  1. have AWS LB Controller installed in your Kube cluster
  2. kubectl get crd targetgroupbindings.elbv2.k8s.aws -o yaml > tgb-crd.yml
  3. crd2pulumi --goPath tgb-crd.yml

Context (Environment)

Go 1.16
WSL2 Ubuntu 20.04

Affected feature

?

Metadata

Metadata

Assignees

Labels

area/codegenAffects quality or correctness of generated codekind/bugSome behavior is incorrect or out of specresolution/fixedThis issue was fixed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions