78
78
{
79
79
SectionName : helpers.GetPointer [v1.SectionName ]("listener-443-2" ),
80
80
},
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
+ },
81
90
},
82
91
}
83
92
@@ -121,7 +130,8 @@ var (
121
130
Gateway : & graph.ParentRefGateway {NamespacedName : gwNsName },
122
131
SectionName : commonRouteSpecValid .ParentRefs [3 ].SectionName ,
123
132
Attachment : & graph.ParentRefAttachmentStatus {
124
- Attached : true ,
133
+ Attached : false ,
134
+ FailedConditions : []conditions.Condition {invalidAttachmentCondition },
125
135
},
126
136
},
127
137
{
@@ -132,6 +142,33 @@ var (
132
142
Attached : true ,
133
143
},
134
144
},
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
+ },
135
172
}
136
173
137
174
parentRefsInvalid = []graph.ParentRef {
@@ -260,6 +297,37 @@ var (
260
297
},
261
298
},
262
299
},
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
+ },
263
331
},
264
332
}
265
333
0 commit comments