Skip to content

Commit

Permalink
udp_proxy: scaffolding (#8883)
Browse files Browse the repository at this point in the history
This is the first commit in a series to support UDP proxying.
There are quite a few TODOs in the code before this feature
will be considered a MVP.

Part of envoyproxy/envoy#492

Mirrored from https://github.com/envoyproxy/envoy @ 477fafdaa8423cff1a5c22d58904c22eed9155f3
  • Loading branch information
data-plane-api(CircleCI) committed Nov 12, 2019
1 parent a3a9012 commit deb3232
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
1 change: 0 additions & 1 deletion envoy/config/filter/network/tcp_proxy/v2/tcp_proxy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ message TcpProxy {
option (validate.required) = true;

// The upstream cluster to connect to.
//
string cluster = 2;

// Multiple upstream clusters can be specified for a given route. The
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ message TcpProxy {
option (validate.required) = true;

// The upstream cluster to connect to.
//
string cluster = 2;

// Multiple upstream clusters can be specified for a given route. The
Expand Down
7 changes: 7 additions & 0 deletions envoy/config/filter/udp/udp_proxy/v2alpha/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# DO NOT EDIT. This file is generated by tools/proto_sync.py.

load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")

licenses(["notice"]) # Apache 2

api_proto_package()
22 changes: 22 additions & 0 deletions envoy/config/filter/udp/udp_proxy/v2alpha/udp_proxy.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
syntax = "proto3";

package envoy.config.filter.udp.udp_proxy.v2alpha;

option java_outer_classname = "UdpProxyProto";
option java_multiple_files = true;
option java_package = "io.envoyproxy.envoy.config.filter.udp.udp_proxy.v2alpha";

import "google/protobuf/duration.proto";

import "validate/validate.proto";

// TODO(mattklein123): docs

message UdpProxyConfig {
oneof cluster_specifier {
option (validate.required) = true;

// The upstream cluster to connect to.
string cluster = 1 [(validate.rules).string = {min_bytes: 1}];
}
}

0 comments on commit deb3232

Please sign in to comment.