make total weight optional (#21892)

Signed-off-by: hejianpeng <hejianpeng2@huawei.com>

Mirrored from https://github.com/envoyproxy/envoy @ bddfcacaced5b049ee26b36141f81ee375f38070
pull/626/head
data-plane-api(Azure Pipelines) 3 years ago
parent bcb9cea72e
commit 7e1e3468fc
  1. 2
      envoy/api/v2/route/route_components.proto
  2. 6
      envoy/config/route/v3/route_components.proto

@ -301,7 +301,7 @@ message WeightedCluster {
// An integer between 0 and :ref:`total_weight
// <envoy_api_field_route.WeightedCluster.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

@ -389,7 +389,7 @@ message WeightedCluster {
// An integer between 0 and :ref:`total_weight
// <envoy_v3_api_field_config.route.v3.WeightedCluster.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

Loading…
Cancel
Save