api: add filter config discovery (#11571)
Define filter config discovery. Add FDS for HTTP filters (HTTP extensions is where the pain is felt the most). Modelled after RDS with a twist of config override for re-use. Risk Level: low (not implemented) Testing: Docs Changes: Release Notes: Issue: #7867 Signed-off-by: Kuat Yessenov <kuat@google.com> Mirrored from https://github.com/envoyproxy/envoy @ bda15c0a5a0390daed991ed4c96a4873ab3ba7d8master-ci-test
parent
807a638a22
commit
f24655b80b
5 changed files with 120 additions and 4 deletions
@ -0,0 +1,14 @@ |
|||||||
|
# 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( |
||||||
|
has_services = True, |
||||||
|
deps = [ |
||||||
|
"//envoy/annotations:pkg", |
||||||
|
"//envoy/service/discovery/v3:pkg", |
||||||
|
"@com_github_cncf_udpa//udpa/annotations:pkg", |
||||||
|
], |
||||||
|
) |
@ -0,0 +1,37 @@ |
|||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package envoy.service.filter.v3; |
||||||
|
|
||||||
|
import "envoy/service/discovery/v3/discovery.proto"; |
||||||
|
|
||||||
|
import "google/api/annotations.proto"; |
||||||
|
|
||||||
|
import "envoy/annotations/resource.proto"; |
||||||
|
import "udpa/annotations/status.proto"; |
||||||
|
import "udpa/annotations/versioning.proto"; |
||||||
|
|
||||||
|
option java_package = "io.envoyproxy.envoy.service.filter.v3"; |
||||||
|
option java_outer_classname = "FilterConfigDiscoveryProto"; |
||||||
|
option java_multiple_files = true; |
||||||
|
option java_generic_services = true; |
||||||
|
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||||
|
|
||||||
|
// [#protodoc-title: FilterConfigDS] |
||||||
|
|
||||||
|
// Return filter configurations. |
||||||
|
service FilterConfigDiscoveryService { |
||||||
|
option (envoy.annotations.resource).type = "envoy.config.core.v3.TypedExtensionConfig"; |
||||||
|
|
||||||
|
rpc StreamFilterConfigs(stream discovery.v3.DiscoveryRequest) |
||||||
|
returns (stream discovery.v3.DiscoveryResponse) { |
||||||
|
} |
||||||
|
|
||||||
|
rpc DeltaFilterConfigs(stream discovery.v3.DeltaDiscoveryRequest) |
||||||
|
returns (stream discovery.v3.DeltaDiscoveryResponse) { |
||||||
|
} |
||||||
|
|
||||||
|
rpc FetchFilterConfigs(discovery.v3.DiscoveryRequest) returns (discovery.v3.DiscoveryResponse) { |
||||||
|
option (google.api.http).post = "/v3/discovery:filter_configs"; |
||||||
|
option (google.api.http).body = "*"; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue