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

Preserve grpc port value from crd #711

Merged

Conversation

BennettJames
Copy link
Contributor

@BennettJames BennettJames commented Jun 27, 2023

Issue #, if available:

Description of changes:

Fix behavior for #710: ensure port is carried over for grpc route targets in virtual router.

When multiple listener support was added in #630, all targets were updated to handle crd -> sdk conversion except grpc ports. This adds matching support for grpc.

Testing:

Re-created the issue; patched the controller; deployed it; confirmed it resolved it.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@ysdongAmazon ysdongAmazon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems they forgot to include gRPC when enabled multiple listener last year. HTTP and TCP are good.

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get tests on this behavior?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good point; updated.

@BennettJames BennettJames force-pushed the preserve-grpc-port-value-from-crd branch from 4ee1c93 to 231c4bd Compare June 27, 2023 18:14
@BennettJames
Copy link
Contributor Author

Seems they forgot to include gRPC when enabled multiple listener last year. HTTP and TCP are good.

Yup, added a few more details to the description to make it clearer.

@BennettJames BennettJames merged commit 472069b into aws:master Jun 27, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants