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 d3f490d commit 49509d8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,11 @@ class EnvoySnapshotFactory(
egressRouteSpecification
).also { e ->
val list = e.mapNotNull { el -> el.endpointsList.find { x -> x.lbEndpointsList.isEmpty() } }
if (list.isNotEmpty() &&
group.proxySettings.outgoing.defaultServiceSettings.routingPolicy.autoServiceTag) {
val rPolicy = group.proxySettings.outgoing.defaultServiceSettings.routingPolicy
if (list.isNotEmpty() && list.none { it.locality.zone.contains("gcp") } && rPolicy.autoServiceTag) {
logger.warn(
"Some of service ${group.serviceName} dependencies have ClusterLoadAssignment with empty " +
"lbEndpoints: $list"
"lbEndpoints: $list, routingPolicy: $rPolicy, all endpoints: $e"
)
}
}
Expand Down

0 comments on commit 49509d8

Please sign in to comment.