Skip to content

Commit

Permalink
add destination port when port discovery is active and delegation is …
Browse files Browse the repository at this point in the history
…true

Signed-off-by: Marco Amador <amador.marco@gmail.com>
  • Loading branch information
mfamador committed Mar 16, 2022
1 parent eca6fa7 commit 4311f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/router/istio.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ func makeDestination(canary *flaggerv1.Canary, host string, weight int) istiov1a

// set destination port when an ingress gateway is specified
if canary.Spec.Service.PortDiscovery &&
len(canary.Spec.Service.Gateways) > 0 &&
canary.Spec.Service.Gateways[0] != "mesh" {
(len(canary.Spec.Service.Gateways) > 0 &&
canary.Spec.Service.Gateways[0] != "mesh" || canary.Spec.Service.Delegation) {
dest = istiov1alpha3.DestinationWeight{
Destination: istiov1alpha3.Destination{
Host: host,
Expand Down

0 comments on commit 4311f6f

Please sign in to comment.