Fix duplicate hosts error when using wildcard

This commit is contained in:
stefanprodan
2019-05-02 19:05:54 +03:00
parent 82067f13bf
commit c92230c109
+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
}