Update validation in Inline DNS table (#11897)

Signed-off-by: Shriram Rajagopalan <rshriram@tetrate.io>

Mirrored from https://github.com/envoyproxy/envoy @ c9a31345807b912b4dda24d1778c5d4ba2f8f6a2
master-ci-test
data-plane-api(CircleCI) 5 years ago
parent c788f1a997
commit 9a22a85ed9
  1. 4
      envoy/data/dns/v3/dns_table.proto
  2. 4
      envoy/data/dns/v4alpha/dns_table.proto

@ -59,13 +59,13 @@ message DnsTable {
"envoy.data.dns.v2alpha.DnsTable.DnsVirtualDomain";
// A domain name for which Envoy will respond to query requests
string name = 1 [(validate.rules).string = {min_len: 2 well_known_regex: HTTP_HEADER_NAME}];
string name = 1 [(validate.rules).string = {min_len: 1 well_known_regex: HTTP_HEADER_NAME}];
// The configuration containing the method to determine the address of this endpoint
DnsEndpoint endpoint = 2;
// Sets the TTL in DNS answers from Envoy returned to the client. The default TTL is 300s
google.protobuf.Duration answer_ttl = 3 [(validate.rules).duration = {gte {seconds: 60}}];
google.protobuf.Duration answer_ttl = 3 [(validate.rules).duration = {gte {seconds: 30}}];
}
// Control how many times Envoy makes an attempt to forward a query to an external DNS server

@ -59,13 +59,13 @@ message DnsTable {
"envoy.data.dns.v3.DnsTable.DnsVirtualDomain";
// A domain name for which Envoy will respond to query requests
string name = 1 [(validate.rules).string = {min_len: 2 well_known_regex: HTTP_HEADER_NAME}];
string name = 1 [(validate.rules).string = {min_len: 1 well_known_regex: HTTP_HEADER_NAME}];
// The configuration containing the method to determine the address of this endpoint
DnsEndpoint endpoint = 2;
// Sets the TTL in DNS answers from Envoy returned to the client. The default TTL is 300s
google.protobuf.Duration answer_ttl = 3 [(validate.rules).duration = {gte {seconds: 60}}];
google.protobuf.Duration answer_ttl = 3 [(validate.rules).duration = {gte {seconds: 30}}];
}
// Control how many times Envoy makes an attempt to forward a query to an external DNS server

Loading…
Cancel
Save