From 0026887e3204008527e357d47544a8b949bb8940 Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Fri, 15 Jan 2021 00:24:33 +0000 Subject: [PATCH] Migrate v2 thrift_filter to v3 api and corresponding docs changes. (#13885) part of #12841 Signed-off-by: Abhay Narayan Katare Mirrored from https://github.com/envoyproxy/envoy @ 77d7cecb7e68cb41b2f5f7c2aa7f4294c88089ce --- BUILD | 1 + .../network/thrift_proxy/router/v3/BUILD | 12 +++++++++++ .../thrift_proxy/router/v3/router.proto | 20 +++++++++++++++++++ versioning/BUILD | 1 + 4 files changed, 34 insertions(+) create mode 100644 envoy/extensions/filters/network/thrift_proxy/router/v3/BUILD create mode 100644 envoy/extensions/filters/network/thrift_proxy/router/v3/router.proto diff --git a/BUILD b/BUILD index 18f50b62..5b413192 100644 --- a/BUILD +++ b/BUILD @@ -231,6 +231,7 @@ proto_library( "//envoy/extensions/filters/network/sni_dynamic_forward_proxy/v3alpha:pkg", "//envoy/extensions/filters/network/tcp_proxy/v3:pkg", "//envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3:pkg", + "//envoy/extensions/filters/network/thrift_proxy/router/v3:pkg", "//envoy/extensions/filters/network/thrift_proxy/v3:pkg", "//envoy/extensions/filters/network/wasm/v3:pkg", "//envoy/extensions/filters/network/zookeeper_proxy/v3:pkg", diff --git a/envoy/extensions/filters/network/thrift_proxy/router/v3/BUILD b/envoy/extensions/filters/network/thrift_proxy/router/v3/BUILD new file mode 100644 index 00000000..c24f669b --- /dev/null +++ b/envoy/extensions/filters/network/thrift_proxy/router/v3/BUILD @@ -0,0 +1,12 @@ +# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. + +load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") + +licenses(["notice"]) # Apache 2 + +api_proto_package( + deps = [ + "//envoy/config/filter/thrift/router/v2alpha1:pkg", + "@com_github_cncf_udpa//udpa/annotations:pkg", + ], +) diff --git a/envoy/extensions/filters/network/thrift_proxy/router/v3/router.proto b/envoy/extensions/filters/network/thrift_proxy/router/v3/router.proto new file mode 100644 index 00000000..860622cb --- /dev/null +++ b/envoy/extensions/filters/network/thrift_proxy/router/v3/router.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package envoy.extensions.filters.network.thrift_proxy.router.v3; + +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; + +option java_package = "io.envoyproxy.envoy.extensions.filters.network.thrift_proxy.router.v3"; +option java_outer_classname = "RouterProto"; +option java_multiple_files = true; +option (udpa.annotations.file_status).package_version_status = ACTIVE; + +// [#protodoc-title: Router] +// Thrift router :ref:`configuration overview `. +// [#extension: envoy.filters.thrift.router] + +message Router { + option (udpa.annotations.versioning).previous_message_type = + "envoy.config.filter.thrift.router.v2alpha1.Router"; +} diff --git a/versioning/BUILD b/versioning/BUILD index 37294f64..3204d928 100644 --- a/versioning/BUILD +++ b/versioning/BUILD @@ -114,6 +114,7 @@ proto_library( "//envoy/extensions/filters/network/sni_dynamic_forward_proxy/v3alpha:pkg", "//envoy/extensions/filters/network/tcp_proxy/v3:pkg", "//envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3:pkg", + "//envoy/extensions/filters/network/thrift_proxy/router/v3:pkg", "//envoy/extensions/filters/network/thrift_proxy/v3:pkg", "//envoy/extensions/filters/network/wasm/v3:pkg", "//envoy/extensions/filters/network/zookeeper_proxy/v3:pkg",