Fix PGV location references and TODOs. (#8708)

Fix PGV location references and TODOs. Remove some unused imports.

Risk Level: Low (locations in comments and simple TODOs as outlined by @htuch)
Testing: bazel build @envoy_api//envoy/..., bazel test //test/...

Signed-off-by: Michael Payne <michael@sooper.org>

Mirrored from https://github.com/envoyproxy/envoy @ 68ca6746d168c6cea26d21479ef50b2be9aaa25d
master-ci-test
data-plane-api(CircleCI) 6 years ago
parent a9d3d978e6
commit f552826a0f
  1. 6
      envoy/api/v2/cluster/circuit_breaker.proto
  2. 4
      envoy/api/v2/route/route.proto
  3. 6
      envoy/api/v3alpha/cluster/circuit_breaker.proto
  4. 4
      envoy/api/v3alpha/route/route.proto
  5. 2
      envoy/config/filter/network/dubbo_proxy/v2alpha1/route.proto
  6. 2
      envoy/config/filter/network/dubbo_proxy/v3alpha/route.proto
  7. 4
      envoy/data/accesslog/v2/accesslog.proto
  8. 4
      envoy/data/accesslog/v3alpha/accesslog.proto

@ -12,6 +12,8 @@ import "envoy/api/v2/core/base.proto";
import "google/protobuf/wrappers.proto";
import "validate/validate.proto";
// [#protodoc-title: Circuit breakers]
// :ref:`Circuit breaking<arch_overview_circuit_break>` settings can be
@ -23,9 +25,7 @@ message CircuitBreakers {
message Thresholds {
// The :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`
// the specified CircuitBreaker settings apply to.
// [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
// https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
core.RoutingPriority priority = 1;
core.RoutingPriority priority = 1 [(validate.rules).enum = {defined_only: true}];
// The maximum number of connections that Envoy will make to the upstream
// cluster. If not specified, the default is 1024.

@ -792,9 +792,7 @@ message RouteAction {
RequestMirrorPolicy request_mirror_policy = 10;
// Optionally specifies the :ref:`routing priority <arch_overview_http_routing_priority>`.
// [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
// https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
core.RoutingPriority priority = 11;
core.RoutingPriority priority = 11 [(validate.rules).enum = {defined_only: true}];
// Specifies a set of rate limit configurations that could be applied to the
// route.

@ -10,6 +10,8 @@ import "envoy/api/v3alpha/core/base.proto";
import "google/protobuf/wrappers.proto";
import "validate/validate.proto";
// [#protodoc-title: Circuit breakers]
// :ref:`Circuit breaking<arch_overview_circuit_break>` settings can be
@ -21,9 +23,7 @@ message CircuitBreakers {
message Thresholds {
// The :ref:`RoutingPriority<envoy_api_enum_api.v3alpha.core.RoutingPriority>`
// the specified CircuitBreaker settings apply to.
// [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
// https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
core.RoutingPriority priority = 1;
core.RoutingPriority priority = 1 [(validate.rules).enum = {defined_only: true}];
// The maximum number of connections that Envoy will make to the upstream
// cluster. If not specified, the default is 1024.

@ -746,9 +746,7 @@ message RouteAction {
RequestMirrorPolicy request_mirror_policy = 10;
// Optionally specifies the :ref:`routing priority <arch_overview_http_routing_priority>`.
// [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
// https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
core.RoutingPriority priority = 11;
core.RoutingPriority priority = 11 [(validate.rules).enum = {defined_only: true}];
// Specifies a set of rate limit configurations that could be applied to the
// route.

@ -10,8 +10,6 @@ import "envoy/api/v2/route/route.proto";
import "envoy/type/matcher/string.proto";
import "envoy/type/range.proto";
import "google/protobuf/wrappers.proto";
import "validate/validate.proto";
// [#protodoc-title: Dubbo Proxy Route Configuration]

@ -10,8 +10,6 @@ import "envoy/api/v3alpha/route/route.proto";
import "envoy/type/matcher/v3alpha/string.proto";
import "envoy/type/v3alpha/range.proto";
import "google/protobuf/wrappers.proto";
import "validate/validate.proto";
// [#protodoc-title: Dubbo Proxy Route Configuration]

@ -289,9 +289,7 @@ message TLSProperties {
// [#next-free-field: 14]
message HTTPRequestProperties {
// The request method (RFC 7231/2616).
// [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
// https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
api.v2.core.RequestMethod request_method = 1;
api.v2.core.RequestMethod request_method = 1 [(validate.rules).enum = {defined_only: true}];
// The scheme portion of the incoming request URI.
string scheme = 2;

@ -289,9 +289,7 @@ message TLSProperties {
// [#next-free-field: 14]
message HTTPRequestProperties {
// The request method (RFC 7231/2616).
// [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
// https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
api.v3alpha.core.RequestMethod request_method = 1;
api.v3alpha.core.RequestMethod request_method = 1 [(validate.rules).enum = {defined_only: true}];
// The scheme portion of the incoming request URI.
string scheme = 2;

Loading…
Cancel
Save