Skip to content

Commit

Permalink
Fix duplicate hosts error when using wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed May 2, 2019
1 parent 82067f1 commit c92230c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/router/istio.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c92230c

Please sign in to comment.