diff --git a/networking/v1/virtual_service_alias.gen.go b/networking/v1/virtual_service_alias.gen.go index 11258a42..28c53e0a 100644 --- a/networking/v1/virtual_service_alias.gen.go +++ b/networking/v1/virtual_service_alias.gen.go @@ -658,8 +658,8 @@ type HTTPBody_Bytes = v1alpha3.HTTPBody_Bytes type HTTPRewrite = v1alpha3.HTTPRewrite type RegexRewrite = v1alpha3.RegexRewrite -// Describes how to match a given string in HTTP headers. Match is -// case-sensitive. +// Describes how to match a given string in HTTP headers. `exact` and `prefix` matching is +// case-sensitive. `regex` matching supports case-insensitive matches. type StringMatch = v1alpha3.StringMatch // exact string match @@ -669,6 +669,8 @@ type StringMatch_Exact = v1alpha3.StringMatch_Exact type StringMatch_Prefix = v1alpha3.StringMatch_Prefix // [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). +// +// Example: `(?i)^aaa$` can be used to case-insensitive match a string consisting of three a's. type StringMatch_Regex = v1alpha3.StringMatch_Regex // Describes the retry policy to use when a HTTP request fails. For diff --git a/networking/v1alpha3/virtual_service.pb.go b/networking/v1alpha3/virtual_service.pb.go index a2c6f860..05755ecc 100644 --- a/networking/v1alpha3/virtual_service.pb.go +++ b/networking/v1alpha3/virtual_service.pb.go @@ -2554,8 +2554,8 @@ func (x *RegexRewrite) GetRewrite() string { return "" } -// Describes how to match a given string in HTTP headers. Match is -// case-sensitive. +// Describes how to match a given string in HTTP headers. `exact` and `prefix` matching is +// case-sensitive. `regex` matching supports case-insensitive matches. type StringMatch struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2645,6 +2645,8 @@ type StringMatch_Prefix struct { type StringMatch_Regex struct { // [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). + // + // Example: `(?i)^aaa$` can be used to case-insensitive match a string consisting of three a's. Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"` } diff --git a/networking/v1alpha3/virtual_service.pb.html b/networking/v1alpha3/virtual_service.pb.html index c5e86fc7..8713ce24 100644 --- a/networking/v1alpha3/virtual_service.pb.html +++ b/networking/v1alpha3/virtual_service.pb.html @@ -1947,8 +1947,8 @@ No

StringMatch

-

Describes how to match a given string in HTTP headers. Match is -case-sensitive.

+

Describes how to match a given string in HTTP headers. exact and prefix matching is +case-sensitive. regex matching supports case-insensitive matches.

@@ -1987,6 +1987,7 @@ No
string (oneof)

RE2 style regex-based match.

+

Example: (?i)^aaa$ can be used to case-insensitive match a string consisting of three a’s.

diff --git a/networking/v1alpha3/virtual_service.proto b/networking/v1alpha3/virtual_service.proto index f91ea50f..4b764141 100644 --- a/networking/v1alpha3/virtual_service.proto +++ b/networking/v1alpha3/virtual_service.proto @@ -1240,8 +1240,8 @@ message RegexRewrite { string rewrite = 2; } -// Describes how to match a given string in HTTP headers. Match is -// case-sensitive. +// Describes how to match a given string in HTTP headers. `exact` and `prefix` matching is +// case-sensitive. `regex` matching supports case-insensitive matches. message StringMatch { oneof match_type { @@ -1252,6 +1252,8 @@ message StringMatch { string prefix = 2; // [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). + // + // Example: `(?i)^aaa$` can be used to case-insensitive match a string consisting of three a's. string regex = 3; } } diff --git a/networking/v1beta1/virtual_service_alias.gen.go b/networking/v1beta1/virtual_service_alias.gen.go index 2439351f..aae704e8 100644 --- a/networking/v1beta1/virtual_service_alias.gen.go +++ b/networking/v1beta1/virtual_service_alias.gen.go @@ -658,8 +658,8 @@ type HTTPBody_Bytes = v1alpha3.HTTPBody_Bytes type HTTPRewrite = v1alpha3.HTTPRewrite type RegexRewrite = v1alpha3.RegexRewrite -// Describes how to match a given string in HTTP headers. Match is -// case-sensitive. +// Describes how to match a given string in HTTP headers. `exact` and `prefix` matching is +// case-sensitive. `regex` matching supports case-insensitive matches. type StringMatch = v1alpha3.StringMatch // exact string match @@ -669,6 +669,8 @@ type StringMatch_Exact = v1alpha3.StringMatch_Exact type StringMatch_Prefix = v1alpha3.StringMatch_Prefix // [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax). +// +// Example: `(?i)^aaa$` can be used to case-insensitive match a string consisting of three a's. type StringMatch_Regex = v1alpha3.StringMatch_Regex // Describes the retry policy to use when a HTTP request fails. For