ambitious-salesmen-39356
05/26/2021, 4:15 PMcrd2pulumi
to take the CRD and convert it to Go types, pretty fabulous. However, I'm not sure if this is a me problem or something crd2pulumi missed - one of the types where I'd expect it to have fields is an empty struct:
type TargetGroupBindingSpecServiceRefPortArgs struct {
}
I'd expect this to have like a Port: <http://pulumi.Int|pulumi.Int>
field. When I go to define a port:
_, err = tgb.NewTargetGroupBinding(ctx, serviceName, &tgb.TargetGroupBindingArgs{
ApiVersion: pulumi.String("elbv2.k8s.aws/v1beta1"),
Kind: pulumi.String("TargetGroupBinding"),
Metadata: &metav1.ObjectMetaArgs{
Name: pulumi.String(serviceName),
Namespace: namespace.Metadata.Elem().Name(),
},
Spec: &tgb.TargetGroupBindingSpecArgs{
TargetType: pulumi.String("ip"),
ServiceRef: &tgb.TargetGroupBindingSpecServiceRefArgs{
Name: svc.Metadata.Elem().Name().Elem().ToStringOutput(),
Port: &tgb.TargetGroupBindingSpecServiceRefPortArgs{
Port: <http://pulumi.Int|pulumi.Int>(80),
},
},
TargetGroupARN: pulumi.Sprintf("%s", tgArnOutput),
},
})
I get an unknown field Port in struct literal
billowy-army-68599
ambitious-salesmen-39356
05/26/2021, 4:17 PMbillowy-army-68599
ambitious-salesmen-39356
05/26/2021, 4:24 PMbillowy-army-68599
ambitious-salesmen-39356
05/26/2021, 4:33 PM