From d049888d808885147040a7375bcff084a3b7ae16 Mon Sep 17 00:00:00 2001 From: "data-plane-api(CircleCI)" Date: Mon, 21 Oct 2019 19:49:54 +0000 Subject: [PATCH] upstream: fix bounds in refresh rate (#8694) Signed-off-by: Asra Ali Mirrored from https://github.com/envoyproxy/envoy @ b331807fcfccee404863284b55d12da6e1775df0 --- envoy/api/v2/cds.proto | 7 ++++--- envoy/api/v3alpha/cds.proto | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/envoy/api/v2/cds.proto b/envoy/api/v2/cds.proto index 2daa87ee..5cf42fa1 100644 --- a/envoy/api/v2/cds.proto +++ b/envoy/api/v2/cds.proto @@ -624,12 +624,13 @@ message Cluster { // :ref:`STRICT_DNS`, // or :ref:`LOGICAL_DNS`, // this value is used as the cluster’s DNS refresh - // rate. If this setting is not specified, the value defaults to 5000ms. For - // cluster types other than + // rate. The value configured must be at least 1ms. If this setting is not specified, the + // value defaults to 5000ms. For cluster types other than // :ref:`STRICT_DNS` // and :ref:`LOGICAL_DNS` // this setting is ignored. - google.protobuf.Duration dns_refresh_rate = 16 [(validate.rules).duration = {gt {}}]; + google.protobuf.Duration dns_refresh_rate = 16 + [(validate.rules).duration = {gt {nanos: 1000000}}]; // If the DNS failure refresh rate is specified and the cluster type is either // :ref:`STRICT_DNS`, diff --git a/envoy/api/v3alpha/cds.proto b/envoy/api/v3alpha/cds.proto index 25877370..77918198 100644 --- a/envoy/api/v3alpha/cds.proto +++ b/envoy/api/v3alpha/cds.proto @@ -620,12 +620,13 @@ message Cluster { // :ref:`STRICT_DNS`, // or :ref:`LOGICAL_DNS`, // this value is used as the cluster’s DNS refresh - // rate. If this setting is not specified, the value defaults to 5000ms. For - // cluster types other than + // rate. The value configured must be at least 1ms. If this setting is not specified, the + // value defaults to 5000ms. For cluster types other than // :ref:`STRICT_DNS` // and :ref:`LOGICAL_DNS` // this setting is ignored. - google.protobuf.Duration dns_refresh_rate = 16 [(validate.rules).duration = {gt {}}]; + google.protobuf.Duration dns_refresh_rate = 16 + [(validate.rules).duration = {gt {nanos: 1000000}}]; // If the DNS failure refresh rate is specified and the cluster type is either // :ref:`STRICT_DNS`,