From df9c2355b1cf01ac6488a540b427374fd63b2d35 Mon Sep 17 00:00:00 2001 From: Chengyuan Zhang Date: Thu, 29 Oct 2020 23:49:54 -0700 Subject: [PATCH] xds: import v2 version of aggregate.ClusterConfig proto (#7573) --- xds/third_party/envoy/import.sh | 1 + .../cluster/aggregate/v2alpha/cluster.proto | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 xds/third_party/envoy/src/main/proto/envoy/config/cluster/aggregate/v2alpha/cluster.proto diff --git a/xds/third_party/envoy/import.sh b/xds/third_party/envoy/import.sh index 3c3e509394c..30bc8bde0a8 100755 --- a/xds/third_party/envoy/import.sh +++ b/xds/third_party/envoy/import.sh @@ -63,6 +63,7 @@ envoy/api/v2/route/route_components.proto envoy/api/v2/scoped_route.proto envoy/api/v2/srds.proto envoy/config/accesslog/v3/accesslog.proto +envoy/config/cluster/aggregate/v2alpha/cluster.proto envoy/config/cluster/v3/circuit_breaker.proto envoy/config/cluster/v3/cluster.proto envoy/config/cluster/v3/filter.proto diff --git a/xds/third_party/envoy/src/main/proto/envoy/config/cluster/aggregate/v2alpha/cluster.proto b/xds/third_party/envoy/src/main/proto/envoy/config/cluster/aggregate/v2alpha/cluster.proto new file mode 100644 index 00000000000..a0fdadd7572 --- /dev/null +++ b/xds/third_party/envoy/src/main/proto/envoy/config/cluster/aggregate/v2alpha/cluster.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +package envoy.config.cluster.aggregate.v2alpha; + +import "udpa/annotations/migrate.proto"; +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option java_package = "io.envoyproxy.envoy.config.cluster.aggregate.v2alpha"; +option java_outer_classname = "ClusterProto"; +option java_multiple_files = true; +option (udpa.annotations.file_migrate).move_to_package = "envoy.extensions.clusters.aggregate.v3"; +option (udpa.annotations.file_status).package_version_status = FROZEN; + +// [#protodoc-title: Aggregate cluster configuration] + +// Configuration for the aggregate cluster. See the :ref:`architecture overview +// ` for more information. +// [#extension: envoy.clusters.aggregate] +message ClusterConfig { + // Load balancing clusters in aggregate cluster. Clusters are prioritized based on the order they + // appear in this list. + repeated string clusters = 1 [(validate.rules).repeated = {min_items: 1}]; +}