Skip to content

Commit

Permalink
Fixed traffic splitting condition for cluster configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nastassia-dailidava committed Dec 5, 2023
1 parent 1abb570 commit ef8d683
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class EnvoyClustersFactory(
clusterLoadAssignment: ClusterLoadAssignment?,
trafficSplitting: TrafficSplittingProperties
) = clusterLoadAssignment?.endpointsList
?.any { e -> trafficSplitting.zoneName == e.locality.zone } ?: false
?.any { e -> trafficSplitting.zoneName == e.locality.zone && e.lbEndpointsCount > 0 } ?: false

private fun shouldAddDynamicForwardProxyCluster(group: Group) =
group.proxySettings.outgoing.getDomainPatternDependencies().isNotEmpty()
Expand Down

0 comments on commit ef8d683

Please sign in to comment.