diff --git a/pkg/conversions/virtualrouter_types_conversion.go b/pkg/conversions/virtualrouter_types_conversion.go index 3bd72c22..2d05d2c2 100644 --- a/pkg/conversions/virtualrouter_types_conversion.go +++ b/pkg/conversions/virtualrouter_types_conversion.go @@ -333,8 +333,8 @@ func Convert_CRD_GRPCRouteMatch_To_SDK_GrpcRouteMatch(crdObj *appmesh.GRPCRouteM sdkObj.Metadata = sdkMetadataList sdkObj.MethodName = crdObj.MethodName sdkObj.ServiceName = crdObj.ServiceName + sdkObj.Port = crdObj.Port return nil - } func Convert_CRD_GRPCRouteAction_To_SDK_GrpcRouteAction(crdObj *appmesh.GRPCRouteAction, diff --git a/pkg/conversions/virtualrouter_types_conversion_test.go b/pkg/conversions/virtualrouter_types_conversion_test.go index b9e50572..aa3821f4 100644 --- a/pkg/conversions/virtualrouter_types_conversion_test.go +++ b/pkg/conversions/virtualrouter_types_conversion_test.go @@ -1453,8 +1453,8 @@ func TestConvert_CRD_GRPCRouteMatch_To_SDK_GrpcRouteMatch(t *testing.T) { }, MethodName: aws.String("stream"), ServiceName: aws.String("foo.foodomain.local"), + Port: aws.Int64(9090), }, - sdkObj: &appmeshsdk.GrpcRouteMatch{}, scope: nil, }, @@ -1491,6 +1491,7 @@ func TestConvert_CRD_GRPCRouteMatch_To_SDK_GrpcRouteMatch(t *testing.T) { }, MethodName: aws.String("stream"), ServiceName: aws.String("foo.foodomain.local"), + Port: aws.Int64(9090), }, }, {