Skip to content

Commit

Permalink
[release-1.15] fix empty endpoints weight for AUTO_PASSTHROUGH gateway (
Browse files Browse the repository at this point in the history
#40313)

* fix empty endpoints weight for AUTO_PASSTHROUGH gateway (#40243)

* fix empty endpoints weight for AUTO_PASSTHROUGH gateway

* add a test

* fix the test
  • Loading branch information
bincherry committed Aug 8, 2022
1 parent 637854d commit d952629
Show file tree
Hide file tree
Showing 2 changed files with 370 additions and 299 deletions.
1 change: 1 addition & 0 deletions pilot/pkg/xds/ep_filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ func (b *EndpointBuilder) EndpointsWithMTLSFilter(endpoints []*LocLbEndpointsAnd
lbEndpoints.append(ep.istioEndpoints[i], lbEp)
}

lbEndpoints.refreshWeight()
filtered = append(filtered, lbEndpoints)
}

Expand Down

0 comments on commit d952629

Please sign in to comment.