Skip to content

Commit

Permalink
fix empty endpoints weight for AUTO_PASSTHROUGH gateway (#40243)
Browse files Browse the repository at this point in the history
* fix empty endpoints weight for AUTO_PASSTHROUGH gateway

* add a test
  • Loading branch information
bincherry committed Aug 5, 2022
1 parent 8ab3d92 commit e3ddbb4
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 []*LocalityEndpoints
lbEndpoints.append(ep.istioEndpoints[i], lbEp)
}

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

Expand Down

0 comments on commit e3ddbb4

Please sign in to comment.