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
@@ -69,7 +69,7 @@ type ListenerNamespaces struct {
69
69
// values are:
70
70
//
71
71
// * Same: Only ListenerSets in the same namespace may be attached to this Gateway.
72
-
// * Selector: ListenerSets in namespaces selected by the selector may be attached to this Gateway.:w
72
+
// * Selector: ListenerSets in namespaces selected by the selector may be attached to this Gateway.
73
73
// * All: ListenerSets in all namespaces may be attached to this Gateway.
74
74
// * None: Only listeners defined in the Gateway's spec are allowed
75
75
//
@@ -332,13 +332,20 @@ type ParentGatewayReference struct {
332
332
333
333
The following example shows a `Gateway` with an HTTP listener and two child HTTPS `ListenerSets` with unique hostnames and certificates.
334
334
335
+
Only `ListenerSets` from the same namespace of the `Gateway` will be accepted:
336
+
337
+
338
+
335
339
```yaml
336
340
apiVersion: gateway.networking.k8s.io/v1
337
341
kind: Gateway
338
342
metadata:
339
343
name: parent-gateway
340
344
spec:
341
345
gatewayClassName: example
346
+
allowedListeners:
347
+
namespaces:
348
+
from: Same
342
349
listeners:
343
350
- name: foo
344
351
hostname: foo.com
@@ -417,7 +424,8 @@ metadata:
417
424
name: parent-gateway
418
425
spec:
419
426
allowedListeners:
420
-
- from: Same
427
+
namespaces:
428
+
from: Same
421
429
```
422
430
423
431
### Route Attachment
@@ -438,35 +446,38 @@ spec:
438
446
sectionName: second
439
447
```
440
448
441
-
For instance, the following `HTTPRoute` attempts to attach to a listener defined in the parent `Gateway` using the sectionName `foo`. This is not valid and the route's status `Accepted` condition should be set to `False`
442
-
449
+
To attach to listeners in both a `Gateway` and `ListenerSet` the route MUST have two `parentRefs`:
443
450
```yaml
444
451
apiVersion: gateway.networking.k8s.io/v1
445
452
kind: HTTPRoute
446
453
metadata:
447
454
name: httproute-example
448
455
spec:
449
456
parentRefs:
450
-
- name: some-workload-listeners
457
+
- name: second-workload-listeners
451
458
kind: ListenerSet
459
+
sectionName: second
460
+
- name: parent-gateway
461
+
kind: Gateway
452
462
sectionName: foo
453
463
```
454
464
455
-
To attach to listeners in both a `Gateway` and `ListenerSet` the route MUST have two `parentRefs`:
465
+
For instance, the following `HTTPRoute` attempts to attach to a listener defined in the parent `Gateway` using the sectionName `foo`. This is not valid and the route's status `Accepted` condition should be set to `False`
466
+
456
467
```yaml
457
468
apiVersion: gateway.networking.k8s.io/v1
458
469
kind: HTTPRoute
459
470
metadata:
460
471
name: httproute-example
461
472
spec:
462
473
parentRefs:
463
-
- name: second-workload-listeners
464
-
kind: ListenerSet
465
-
sectionName: second
466
-
- name: parent-gateway
474
+
- name: some-workload-listeners
467
475
kind: Gateway
468
476
sectionName: foo
469
477
```
478
+
>--- Ricardo - above is a bit confusing, maybe ask Dave some clarification
0 commit comments