@@ -58,12 +58,19 @@ spec:
58
58
- kind
59
59
- name
60
60
type : object
61
- hostnames :
62
- description : " Hostnames are a list of hosts names that match this
63
- host block. \n TODO: RFC link"
64
- items :
65
- type : string
66
- type : array
61
+ hostname :
62
+ description : " Hostname is the fully qualified domain name of a network
63
+ host, as defined by RFC 3986. Note the following deviations from
64
+ the \" host\" part of the URI as defined in the RFC: \n 1. IPs
65
+ are not allowed. 2. The `:` delimiter is not respected because
66
+ ports are not allowed. \n Incoming requests are matched against
67
+ Hostname before processing HTTPRoute rules. For example, if the
68
+ request header contains host: foo.example.com, an HTTPRoute with
69
+ hostname foo.example.com will match. However, an HTTPRoute with
70
+ hostname example.com or bar.example.com will not match. If Hostname
71
+ is unspecified, the Gateway routes all traffic based on the specified
72
+ rules. \n Support: Core"
73
+ type : string
67
74
rules :
68
75
description : Rules are a list of HTTP matchers, filters and actions.
69
76
items :
@@ -217,7 +224,6 @@ spec:
217
224
type : object
218
225
type : array
219
226
required :
220
- - hostnames
221
227
- rules
222
228
type : object
223
229
hosts :
@@ -245,12 +251,19 @@ spec:
245
251
- kind
246
252
- name
247
253
type : object
248
- hostnames :
249
- description : " Hostnames are a list of hosts names that match this
250
- host block. \n TODO: RFC link"
251
- items :
252
- type : string
253
- type : array
254
+ hostname :
255
+ description : " Hostname is the fully qualified domain name of a
256
+ network host, as defined by RFC 3986. Note the following deviations
257
+ from the \" host\" part of the URI as defined in the RFC: \n
258
+ 1. IPs are not allowed. 2. The `:` delimiter is not respected
259
+ because ports are not allowed. \n Incoming requests are matched
260
+ against Hostname before processing HTTPRoute rules. For example,
261
+ if the request header contains host: foo.example.com, an HTTPRoute
262
+ with hostname foo.example.com will match. However, an HTTPRoute
263
+ with hostname example.com or bar.example.com will not match.
264
+ If Hostname is unspecified, the Gateway routes all traffic based
265
+ on the specified rules. \n Support: Core"
266
+ type : string
254
267
rules :
255
268
description : Rules are a list of HTTP matchers, filters and actions.
256
269
items :
@@ -416,7 +429,6 @@ spec:
416
429
type : object
417
430
type : array
418
431
required :
419
- - hostnames
420
432
- rules
421
433
type : object
422
434
type : array
0 commit comments