Skip to content

Commit

Permalink
added log for empty load assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
nastassia-dailidava committed Dec 17, 2024
1 parent 49509d8 commit f3c7457
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,10 @@ class EnvoySnapshotFactory(
).also { e ->
val list = e.mapNotNull { el -> el.endpointsList.find { x -> x.lbEndpointsList.isEmpty() } }
val rPolicy = group.proxySettings.outgoing.defaultServiceSettings.routingPolicy
if (list.isNotEmpty() && list.none { it.locality.zone.contains("gcp") } && rPolicy.autoServiceTag) {
if (list.isNotEmpty() &&
list.none { it.locality.zone.contains(properties.loadBalancing.trafficSplitting.zoneName) } &&
rPolicy.autoServiceTag
) {
logger.warn(
"Some of service ${group.serviceName} dependencies have ClusterLoadAssignment with empty " +
"lbEndpoints: $list, routingPolicy: $rPolicy, all endpoints: $e"
Expand Down

0 comments on commit f3c7457

Please sign in to comment.