From eccb4e4e5cc137be66d51aecc891329b5c782ec5 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Wed, 13 May 2020 22:44:43 +0300 Subject: [PATCH] Use target port for virtual routers AppMesh does not support port mappings --- pkg/router/appmesh_v1beta2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/router/appmesh_v1beta2.go b/pkg/router/appmesh_v1beta2.go index 1a6cd3bc2..527099fc0 100644 --- a/pkg/router/appmesh_v1beta2.go +++ b/pkg/router/appmesh_v1beta2.go @@ -269,7 +269,7 @@ func (ar *AppMeshv1beta2Router) reconcileVirtualRouter(canary *flaggerv1.Canary, Listeners: []appmeshv1.VirtualRouterListener{ { PortMapping: appmeshv1.PortMapping{ - Port: appmeshv1.PortNumber(canary.Spec.Service.Port), + Port: ar.getContainerPort(canary), Protocol: protocol, }, },