diff --git a/envoy/api/v2/route/route_components.proto b/envoy/api/v2/route/route_components.proto index 062e7323..af01e4b4 100644 --- a/envoy/api/v2/route/route_components.proto +++ b/envoy/api/v2/route/route_components.proto @@ -301,7 +301,7 @@ message WeightedCluster { // An integer between 0 and :ref:`total_weight // `. When a request matches the route, // the choice of an upstream cluster is determined by its weight. The sum of weights across all - // entries in the clusters array must add up to the total_weight, which defaults to 100. + // entries in the clusters array must add up to the total_weight, if total_weight is greater than 0. google.protobuf.UInt32Value weight = 2; // Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in diff --git a/envoy/config/route/v3/route_components.proto b/envoy/config/route/v3/route_components.proto index 963a7fd3..f8fd7295 100644 --- a/envoy/config/route/v3/route_components.proto +++ b/envoy/config/route/v3/route_components.proto @@ -389,7 +389,7 @@ message WeightedCluster { // An integer between 0 and :ref:`total_weight // `. When a request matches the route, // the choice of an upstream cluster is determined by its weight. The sum of weights across all - // entries in the clusters array must add up to the total_weight, which defaults to 100. + // entries in the clusters array must add up to the total_weight, if total_weight is greater than 0. google.protobuf.UInt32Value weight = 2; // Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in @@ -458,8 +458,8 @@ message WeightedCluster { repeated ClusterWeight clusters = 1 [(validate.rules).repeated = {min_items: 1}]; // Specifies the total weight across all clusters. The sum of all cluster weights must equal this - // value, which must be greater than 0. Defaults to 100. - google.protobuf.UInt32Value total_weight = 3 [(validate.rules).uint32 = {gte: 1}]; + // value, if this is greater than 0. + google.protobuf.UInt32Value total_weight = 3; // Specifies the runtime key prefix that should be used to construct the // runtime keys associated with each cluster. When the *runtime_key_prefix* is