config: Adding config-validation interface, extension and CDS validator (#19857)
* Adding custom config-validation interface, extension, and a CDS validator. Signed-off-by: Adi Suissa-Peleg <adip@google.com> Mirrored from https://github.com/envoyproxy/envoy @ e58c890ded5c13e60eba3285c96ffefd6f7215cfpull/626/head
parent
457cc9878a
commit
41ca3c7ef9
7 changed files with 77 additions and 33 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,23 @@ |
|||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package envoy.extensions.config.validators.minimum_clusters.v3; |
||||||
|
|
||||||
|
import "udpa/annotations/status.proto"; |
||||||
|
|
||||||
|
option java_package = "io.envoyproxy.envoy.extensions.config.validators.minimum_clusters.v3"; |
||||||
|
option java_outer_classname = "MinimumClustersProto"; |
||||||
|
option java_multiple_files = true; |
||||||
|
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/config/validators/minimum_clusters/v3;minimum_clustersv3"; |
||||||
|
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||||
|
|
||||||
|
// [#protodoc-title: Minimum Clusters] |
||||||
|
// [#extension: envoy.config.validators.minimum_clusters] |
||||||
|
|
||||||
|
// Validates a CDS config, and ensures that the number of clusters is above the |
||||||
|
// set threshold. |
||||||
|
message MinimumClustersValidator { |
||||||
|
// The minimal clusters threshold. Any CDS config update leading to less than |
||||||
|
// this number will be rejected. |
||||||
|
// Default value is 0. |
||||||
|
uint32 min_clusters_num = 1; |
||||||
|
} |
Loading…
Reference in new issue