@@ -71,6 +71,59 @@ backendTrafficPolicies:
7171 status : " True"
7272 type : Overridden
7373 controllerName : gateway.envoyproxy.io/gatewayclass-controller
74+ - apiVersion : gateway.envoyproxy.io/v1alpha1
75+ kind : BackendTrafficPolicy
76+ metadata :
77+ name : merged-policy-for-httproute-2
78+ namespace : default
79+ spec :
80+ httpUpgrade :
81+ - type : spdy/3.1
82+ mergeType : StrategicMerge
83+ targetRef :
84+ group : gateway.networking.k8s.io
85+ kind : HTTPRoute
86+ name : httproute-2
87+ status :
88+ ancestors :
89+ - ancestorRef :
90+ group : gateway.networking.k8s.io
91+ kind : Gateway
92+ name : gateway-1
93+ namespace : envoy-gateway
94+ sectionName : listener-1
95+ conditions :
96+ - lastTransitionTime : null
97+ message : Merged with policy envoy-gateway/policy-for-gateway-1
98+ reason : Merged
99+ status : " True"
100+ type : Merged
101+ controllerName : gateway.envoyproxy.io/gatewayclass-controller
102+ - ancestorRef :
103+ group : gateway.networking.k8s.io
104+ kind : Gateway
105+ name : gateway-1
106+ namespace : envoy-gateway
107+ sectionName : listener-2
108+ conditions :
109+ - lastTransitionTime : null
110+ message : Merged with policy envoy-gateway/policy-for-gateway-1-listener-2
111+ reason : Merged
112+ status : " True"
113+ type : Merged
114+ controllerName : gateway.envoyproxy.io/gatewayclass-controller
115+ - ancestorRef :
116+ group : gateway.networking.k8s.io
117+ kind : Gateway
118+ name : gateway-1
119+ namespace : envoy-gateway
120+ conditions :
121+ - lastTransitionTime : null
122+ message : Policy has been accepted.
123+ reason : Accepted
124+ status : " True"
125+ type : Accepted
126+ controllerName : gateway.envoyproxy.io/gatewayclass-controller
74127- apiVersion : gateway.envoyproxy.io/v1alpha1
75128 kind : BackendTrafficPolicy
76129 metadata :
@@ -137,7 +190,7 @@ backendTrafficPolicies:
137190 type : Accepted
138191 - lastTransitionTime : null
139192 message : ' This policy is being merged by other backendTrafficPolicies for
140- these routes: [default/grpcroute-1]'
193+ these routes: [default/grpcroute-1 default/httproute-2 ]'
141194 reason : Merged
142195 status : " True"
143196 type : Merged
@@ -173,7 +226,7 @@ backendTrafficPolicies:
173226 type : Accepted
174227 - lastTransitionTime : null
175228 message : ' This policy is being merged by other backendTrafficPolicies for
176- these routes: [default/grpcroute-1 default/httproute-1]'
229+ these routes: [default/grpcroute-1 default/httproute-1 default/httproute-2 ]'
177230 reason : Merged
178231 status : " True"
179232 type : Merged
@@ -207,7 +260,7 @@ gateways:
207260 protocol : HTTP
208261 status :
209262 listeners :
210- - attachedRoutes : 1
263+ - attachedRoutes : 2
211264 conditions :
212265 - lastTransitionTime : null
213266 message : Sending translated listener configuration to the data plane
@@ -230,7 +283,7 @@ gateways:
230283 kind : HTTPRoute
231284 - group : gateway.networking.k8s.io
232285 kind : GRPCRoute
233- - attachedRoutes : 1
286+ - attachedRoutes : 2
234287 conditions :
235288 - lastTransitionTime : null
236289 message : Sending translated listener configuration to the data plane
@@ -330,6 +383,39 @@ httpRoutes:
330383 name : gateway-1
331384 namespace : envoy-gateway
332385 sectionName : listener-1
386+ - apiVersion : gateway.networking.k8s.io/v1
387+ kind : HTTPRoute
388+ metadata :
389+ name : httproute-2
390+ namespace : default
391+ spec :
392+ parentRefs :
393+ - name : gateway-1
394+ namespace : envoy-gateway
395+ rules :
396+ - backendRefs :
397+ - name : service-1
398+ port : 8080
399+ matches :
400+ - path :
401+ value : /foo
402+ status :
403+ parents :
404+ - conditions :
405+ - lastTransitionTime : null
406+ message : Route is accepted
407+ reason : Accepted
408+ status : " True"
409+ type : Accepted
410+ - lastTransitionTime : null
411+ message : Resolved all the Object references for the Route
412+ reason : ResolvedRefs
413+ status : " True"
414+ type : ResolvedRefs
415+ controllerName : gateway.envoyproxy.io/gatewayclass-controller
416+ parentRef :
417+ name : gateway-1
418+ namespace : envoy-gateway
333419infraIR :
334420 envoy-gateway/gateway-1 :
335421 proxy :
@@ -474,6 +560,44 @@ xdsIR:
474560 traffic :
475561 backendConnection :
476562 bufferLimit : 200000000
563+ - destination :
564+ metadata :
565+ kind : HTTPRoute
566+ name : httproute-2
567+ namespace : default
568+ name : httproute/default/httproute-2/rule/0
569+ settings :
570+ - addressType : IP
571+ endpoints :
572+ - host : 7.7.7.7
573+ port : 8080
574+ metadata :
575+ name : service-1
576+ namespace : default
577+ sectionName : " 8080"
578+ name : httproute/default/httproute-2/rule/0/backend/0
579+ protocol : HTTP
580+ weight : 1
581+ hostname : ' *'
582+ isHTTP2 : false
583+ metadata :
584+ kind : HTTPRoute
585+ name : httproute-2
586+ namespace : default
587+ name : httproute/default/httproute-2/rule/0/match/0/*
588+ pathMatch :
589+ distinct : false
590+ name : " "
591+ prefix : /foo
592+ traffic :
593+ httpUpgrade :
594+ - type : spdy/3.1
595+ timeout :
596+ http :
597+ connectionIdleTimeout : 16s
598+ maxConnectionDuration : 17s
599+ tcp :
600+ connectTimeout : 15s
477601 - address : 0.0.0.0
478602 externalPort : 8082
479603 hostnames :
@@ -490,6 +614,44 @@ xdsIR:
490614 mergeSlashes : true
491615 port : 8082
492616 routes :
617+ - destination :
618+ metadata :
619+ kind : HTTPRoute
620+ name : httproute-2
621+ namespace : default
622+ name : httproute/default/httproute-2/rule/0
623+ settings :
624+ - addressType : IP
625+ endpoints :
626+ - host : 7.7.7.7
627+ port : 8080
628+ metadata :
629+ name : service-1
630+ namespace : default
631+ sectionName : " 8080"
632+ name : httproute/default/httproute-2/rule/0/backend/0
633+ protocol : HTTP
634+ weight : 1
635+ hostname : ' *'
636+ isHTTP2 : false
637+ metadata :
638+ kind : HTTPRoute
639+ name : httproute-2
640+ namespace : default
641+ name : httproute/default/httproute-2/rule/0/match/0/*
642+ pathMatch :
643+ distinct : false
644+ name : " "
645+ prefix : /foo
646+ traffic :
647+ httpUpgrade :
648+ - type : spdy/3.1
649+ timeout :
650+ http :
651+ connectionIdleTimeout : 26s
652+ maxConnectionDuration : 27s
653+ tcp :
654+ connectTimeout : 25s
493655 - destination :
494656 metadata :
495657 kind : GRPCRoute
0 commit comments