You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apis/v1/httproute_types.go
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -612,9 +612,14 @@ type HTTPHeaderMatch struct {
612
612
NameHTTPHeaderName`json:"name"`
613
613
614
614
// Value is the value of HTTP Header to be matched.
615
+
// <gateway:experimental:description>
616
+
// Must consist of printable US-ASCII characters, optionally separated
617
+
// by single tabs or spaces. See: https://tools.ietf.org/html/rfc7230#section-3.2
618
+
// </gateway:experimental:description>
615
619
//
616
620
// +kubebuilder:validation:MinLength=1
617
621
// +kubebuilder:validation:MaxLength=4096
622
+
// <gateway:experimental:validation:XValidation:message="must only contain printable ASCII characters, optionally separated by single tabs or spaces",rule="self.matches('^[!-~]+([\\t ]?[!-~]+)*$')">
618
623
Valuestring`json:"value"`
619
624
}
620
625
@@ -981,9 +986,14 @@ type HTTPHeader struct {
981
986
NameHTTPHeaderName`json:"name"`
982
987
983
988
// Value is the value of HTTP Header to be matched.
989
+
// <gateway:experimental:description>
990
+
// Must consist of printable US-ASCII characters, optionally separated
991
+
// by single tabs or spaces. See: https://tools.ietf.org/html/rfc7230#section-3.2
992
+
// </gateway:experimental:description>
984
993
//
985
994
// +kubebuilder:validation:MinLength=1
986
995
// +kubebuilder:validation:MaxLength=4096
996
+
// <gateway:experimental:validation:XValidation:message="must only contain printable ASCII characters, optionally separated by single tabs or spaces",rule="self.matches('^[!-~]+([\\t ]?[!-~]+)*$')">
0 commit comments