7878 {
7979 SectionName : helpers.GetPointer [v1.SectionName ]("listener-443-2" ),
8080 },
81+ {
82+ SectionName : helpers.GetPointer [v1.SectionName ]("listener-443-3" ),
83+ },
84+ {
85+ SectionName : helpers.GetPointer [v1.SectionName ]("listener-8080-1" ),
86+ },
87+ {
88+ SectionName : helpers.GetPointer [v1.SectionName ]("listener-8080-2" ),
89+ },
8190 },
8291 }
8392
@@ -121,7 +130,8 @@ var (
121130 Gateway : & graph.ParentRefGateway {NamespacedName : gwNsName },
122131 SectionName : commonRouteSpecValid .ParentRefs [3 ].SectionName ,
123132 Attachment : & graph.ParentRefAttachmentStatus {
124- Attached : true ,
133+ Attached : false ,
134+ FailedConditions : []conditions.Condition {invalidAttachmentCondition },
125135 },
126136 },
127137 {
@@ -132,6 +142,33 @@ var (
132142 Attached : true ,
133143 },
134144 },
145+ {
146+ Idx : 3 ,
147+ Gateway : & graph.ParentRefGateway {NamespacedName : gwNsName },
148+ SectionName : commonRouteSpecValid .ParentRefs [5 ].SectionName ,
149+ Attachment : & graph.ParentRefAttachmentStatus {
150+ Attached : true ,
151+ FailedConditions : []conditions.Condition {invalidAttachmentCondition },
152+ },
153+ },
154+ {
155+ Idx : 4 ,
156+ Gateway : & graph.ParentRefGateway {NamespacedName : gwNsName },
157+ SectionName : commonRouteSpecValid .ParentRefs [6 ].SectionName ,
158+ Attachment : & graph.ParentRefAttachmentStatus {
159+ Attached : false ,
160+ FailedConditions : []conditions.Condition {invalidAttachmentCondition },
161+ },
162+ },
163+ {
164+ Idx : 4 ,
165+ Gateway : & graph.ParentRefGateway {NamespacedName : gwNsName },
166+ SectionName : commonRouteSpecValid .ParentRefs [7 ].SectionName ,
167+ Attachment : & graph.ParentRefAttachmentStatus {
168+ Attached : false ,
169+ FailedConditions : []conditions.Condition {invalidAttachmentCondition },
170+ },
171+ },
135172 }
136173
137174 parentRefsInvalid = []graph.ParentRef {
@@ -260,6 +297,37 @@ var (
260297 },
261298 },
262299 },
300+ {
301+ ParentRef : v1.ParentReference {
302+ Namespace : helpers .GetPointer (v1 .Namespace (gwNsName .Namespace )),
303+ Name : v1 .ObjectName (gwNsName .Name ),
304+ },
305+ ControllerName : gatewayCtlrName ,
306+ Conditions : []metav1.Condition {
307+ {
308+ Type : string (v1 .RouteConditionAccepted ),
309+ Status : metav1 .ConditionTrue ,
310+ ObservedGeneration : 3 ,
311+ LastTransitionTime : transitionTime ,
312+ Reason : string (v1 .RouteReasonAccepted ),
313+ Message : "The route is accepted" ,
314+ },
315+ {
316+ Type : string (v1 .RouteConditionResolvedRefs ),
317+ Status : metav1 .ConditionTrue ,
318+ ObservedGeneration : 3 ,
319+ LastTransitionTime : transitionTime ,
320+ Reason : string (v1 .RouteReasonResolvedRefs ),
321+ Message : "All references are resolved" ,
322+ },
323+ {
324+ Type : invalidAttachmentCondition .Type ,
325+ Status : metav1 .ConditionTrue ,
326+ ObservedGeneration : 3 ,
327+ LastTransitionTime : transitionTime ,
328+ },
329+ },
330+ },
263331 },
264332 }
265333
0 commit comments