diff options
author | Martin Polden <mpolden@mpolden.no> | 2021-11-22 09:44:21 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2021-11-22 09:44:21 +0100 |
commit | 38fdcb1a225e68993460214d96f3b5a9839e5ce9 (patch) | |
tree | e3a33fb7667ac3c46700ec9067fd342248e97668 | |
parent | ff160c3f5a6a072082db60e0cc0cdba2755de110 (diff) |
Ignore routing policy not supporting ALIAS
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/RoutingPolicies.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/RoutingPolicies.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/RoutingPolicies.java index 634d76c8449..d2dc2771160 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/RoutingPolicies.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/RoutingPolicies.java @@ -230,6 +230,7 @@ public class RoutingPolicies { for (var policy : routeEntry.getValue()) { for (var target : endpoint.targets()) { if (!policy.appliesTo(target.deployment())) continue; + if (policy.dnsZone().isEmpty()) continue; // Does not support ALIAS records int weight = target.weight(); if (isConfiguredOut(policy, inactiveZones) && removableFromApplicationEndpoint(policy, application, targetWeights)) { weight = 0; |