Merge pull request #162 from weaveworks/fix-vs

Fix duplicate hosts error when using wildcard
This commit is contained in:
Stefan Prodan
2019-05-02 19:17:52 +03:00
committed by GitHub
+1 -1
View File
@@ -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
}