matching: add support for generic inputs and add environment variable input (#15410)
Adds support for a "generic input" extension point that allows specifying inputs that are not dependent on protocol data. Adds an environment variable generic input that allows matching on the value of an environment variable. Signed-off-by: Snow Pettersen <snowp@lyft.com> Mirrored from https://github.com/envoyproxy/envoy @ 758a9a90c15331fbfd093f23170454c5a2fbf903pull/624/head
parent
f8b858fdd2
commit
dd8276e9da
6 changed files with 35 additions and 0 deletions
@ -0,0 +1,9 @@ |
||||
# 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 = ["@com_github_cncf_udpa//udpa/annotations:pkg"], |
||||
) |
@ -0,0 +1,22 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.extensions.matching.common_inputs.environment_variable.v3; |
||||
|
||||
import "udpa/annotations/migrate.proto"; |
||||
import "udpa/annotations/status.proto"; |
||||
import "udpa/annotations/versioning.proto"; |
||||
import "validate/validate.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.extensions.matching.common_inputs.environment_variable.v3"; |
||||
option java_outer_classname = "InputProto"; |
||||
option java_multiple_files = true; |
||||
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||
|
||||
// [#protodoc-title: Environment Variable Input] |
||||
// [#extension: envoy.matching.common_inputs.environment_variable] |
||||
|
||||
// Reads an environment variable to provide an input for matching. |
||||
message Config { |
||||
// Name of the environment variable to read from. |
||||
string name = 1 [(validate.rules).string = {min_len: 1}]; |
||||
} |
Loading…
Reference in new issue