From c92230c109b9a3b3afb4d0c4451ff2a98f3d3cdd Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Thu, 2 May 2019 19:05:54 +0300 Subject: [PATCH] Fix duplicate hosts error when using wildcard --- pkg/router/istio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/router/istio.go b/pkg/router/istio.go index 40370d10..5a1bd227 100644 --- a/pkg/router/istio.go +++ b/pkg/router/istio.go @@ -32,7 +32,7 @@ func (ir *IstioRouter) Reconcile(canary *flaggerv1.Canary) error { hosts := canary.Spec.Service.Hosts var hasServiceHost bool for _, h := range hosts { - if h == targetName { + if h == targetName || h == "*" { hasServiceHost = true break }