From 040dbb8d032e48e4d52afd114626f4d69c69a959 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Sat, 10 Aug 2019 11:04:15 +0300 Subject: [PATCH] Add http listener to virtual router reconciliation --- pkg/router/appmesh.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/router/appmesh.go b/pkg/router/appmesh.go index 311eb8a4..c8b36ae0 100644 --- a/pkg/router/appmesh.go +++ b/pkg/router/appmesh.go @@ -165,6 +165,14 @@ func (ar *AppMeshRouter) reconcileVirtualService(canary *flaggerv1.Canary, name MeshName: canary.Spec.Service.MeshName, VirtualRouter: &AppmeshV1beta1.VirtualRouter{ Name: fmt.Sprintf("%s-router", targetName), + Listeners: []AppmeshV1beta1.Listener{ + { + PortMapping: AppmeshV1beta1.PortMapping{ + Port: int64(canary.Spec.Service.Port), + Protocol: "http", + }, + }, + }, }, Routes: []AppmeshV1beta1.Route{ {