@@ -286,12 +286,18 @@ var _ = Describe("ChangeProcessor", func() {
286
286
ObservedGeneration : gw1 .Generation ,
287
287
ListenerStatuses : map [string ]state.ListenerStatus {
288
288
"listener-80-1" : {
289
- Valid : false ,
290
289
AttachedRoutes : 1 ,
290
+ Conditions : append (
291
+ conditions .NewDefaultListenerConditions (),
292
+ conditions .NewTODO ("GatewayClass is invalid or doesn't exist" ),
293
+ ),
291
294
},
292
295
"listener-443-1" : {
293
- Valid : false ,
294
296
AttachedRoutes : 1 ,
297
+ Conditions : append (
298
+ conditions .NewDefaultListenerConditions (),
299
+ conditions .NewTODO ("GatewayClass is invalid or doesn't exist" ),
300
+ ),
295
301
},
296
302
},
297
303
},
@@ -303,13 +309,13 @@ var _ = Describe("ChangeProcessor", func() {
303
309
"listener-80-1" : {
304
310
Conditions : append (
305
311
conditions .NewDefaultRouteConditions (),
306
- conditions .NewRouteTODO ("GatewayClass is invalid or doesn't exist" ),
312
+ conditions .NewTODO ("GatewayClass is invalid or doesn't exist" ),
307
313
),
308
314
},
309
315
"listener-443-1" : {
310
316
Conditions : append (
311
317
conditions .NewDefaultRouteConditions (),
312
- conditions .NewRouteTODO ("GatewayClass is invalid or doesn't exist" ),
318
+ conditions .NewTODO ("GatewayClass is invalid or doesn't exist" ),
313
319
),
314
320
},
315
321
},
@@ -391,12 +397,12 @@ var _ = Describe("ChangeProcessor", func() {
391
397
ObservedGeneration : gw1 .Generation ,
392
398
ListenerStatuses : map [string ]state.ListenerStatus {
393
399
"listener-80-1" : {
394
- Valid : true ,
395
400
AttachedRoutes : 1 ,
401
+ Conditions : conditions .NewDefaultListenerConditions (),
396
402
},
397
403
"listener-443-1" : {
398
- Valid : true ,
399
404
AttachedRoutes : 1 ,
405
+ Conditions : conditions .NewDefaultListenerConditions (),
400
406
},
401
407
},
402
408
},
@@ -500,12 +506,12 @@ var _ = Describe("ChangeProcessor", func() {
500
506
ObservedGeneration : gw1 .Generation ,
501
507
ListenerStatuses : map [string ]state.ListenerStatus {
502
508
"listener-80-1" : {
503
- Valid : true ,
504
509
AttachedRoutes : 1 ,
510
+ Conditions : conditions .NewDefaultListenerConditions (),
505
511
},
506
512
"listener-443-1" : {
507
- Valid : true ,
508
513
AttachedRoutes : 1 ,
514
+ Conditions : conditions .NewDefaultListenerConditions (),
509
515
},
510
516
},
511
517
},
@@ -610,12 +616,12 @@ var _ = Describe("ChangeProcessor", func() {
610
616
ObservedGeneration : gw1Updated .Generation ,
611
617
ListenerStatuses : map [string ]state.ListenerStatus {
612
618
"listener-80-1" : {
613
- Valid : true ,
614
619
AttachedRoutes : 1 ,
620
+ Conditions : conditions .NewDefaultListenerConditions (),
615
621
},
616
622
"listener-443-1" : {
617
- Valid : true ,
618
623
AttachedRoutes : 1 ,
624
+ Conditions : conditions .NewDefaultListenerConditions (),
619
625
},
620
626
},
621
627
},
@@ -719,12 +725,12 @@ var _ = Describe("ChangeProcessor", func() {
719
725
ObservedGeneration : gw1Updated .Generation ,
720
726
ListenerStatuses : map [string ]state.ListenerStatus {
721
727
"listener-80-1" : {
722
- Valid : true ,
723
728
AttachedRoutes : 1 ,
729
+ Conditions : conditions .NewDefaultListenerConditions (),
724
730
},
725
731
"listener-443-1" : {
726
- Valid : true ,
727
732
AttachedRoutes : 1 ,
733
+ Conditions : conditions .NewDefaultListenerConditions (),
728
734
},
729
735
},
730
736
},
@@ -827,12 +833,12 @@ var _ = Describe("ChangeProcessor", func() {
827
833
ObservedGeneration : gw1Updated .Generation ,
828
834
ListenerStatuses : map [string ]state.ListenerStatus {
829
835
"listener-80-1" : {
830
- Valid : true ,
831
836
AttachedRoutes : 1 ,
837
+ Conditions : conditions .NewDefaultListenerConditions (),
832
838
},
833
839
"listener-443-1" : {
834
- Valid : true ,
835
840
AttachedRoutes : 1 ,
841
+ Conditions : conditions .NewDefaultListenerConditions (),
836
842
},
837
843
},
838
844
},
@@ -928,12 +934,12 @@ var _ = Describe("ChangeProcessor", func() {
928
934
ObservedGeneration : gw1Updated .Generation ,
929
935
ListenerStatuses : map [string ]state.ListenerStatus {
930
936
"listener-80-1" : {
931
- Valid : true ,
932
937
AttachedRoutes : 1 ,
938
+ Conditions : conditions .NewDefaultListenerConditions (),
933
939
},
934
940
"listener-443-1" : {
935
- Valid : true ,
936
941
AttachedRoutes : 1 ,
942
+ Conditions : conditions .NewDefaultListenerConditions (),
937
943
},
938
944
},
939
945
},
@@ -960,13 +966,13 @@ var _ = Describe("ChangeProcessor", func() {
960
966
"listener-80-1" : {
961
967
Conditions : append (
962
968
conditions .NewDefaultRouteConditions (),
963
- conditions .NewRouteTODO ("Gateway is ignored" ),
969
+ conditions .NewTODO ("Gateway is ignored" ),
964
970
),
965
971
},
966
972
"listener-443-1" : {
967
973
Conditions : append (
968
974
conditions .NewDefaultRouteConditions (),
969
- conditions .NewRouteTODO ("Gateway is ignored" ),
975
+ conditions .NewTODO ("Gateway is ignored" ),
970
976
),
971
977
},
972
978
},
@@ -1049,12 +1055,12 @@ var _ = Describe("ChangeProcessor", func() {
1049
1055
ObservedGeneration : gw2 .Generation ,
1050
1056
ListenerStatuses : map [string ]state.ListenerStatus {
1051
1057
"listener-80-1" : {
1052
- Valid : true ,
1053
1058
AttachedRoutes : 1 ,
1059
+ Conditions : conditions .NewDefaultListenerConditions (),
1054
1060
},
1055
1061
"listener-443-1" : {
1056
- Valid : true ,
1057
1062
AttachedRoutes : 1 ,
1063
+ Conditions : conditions .NewDefaultListenerConditions (),
1058
1064
},
1059
1065
},
1060
1066
},
@@ -1113,12 +1119,12 @@ var _ = Describe("ChangeProcessor", func() {
1113
1119
ObservedGeneration : gw2 .Generation ,
1114
1120
ListenerStatuses : map [string ]state.ListenerStatus {
1115
1121
"listener-80-1" : {
1116
- Valid : true ,
1117
1122
AttachedRoutes : 0 ,
1123
+ Conditions : conditions .NewDefaultListenerConditions (),
1118
1124
},
1119
1125
"listener-443-1" : {
1120
- Valid : true ,
1121
1126
AttachedRoutes : 0 ,
1127
+ Conditions : conditions .NewDefaultListenerConditions (),
1122
1128
},
1123
1129
},
1124
1130
},
@@ -1146,12 +1152,18 @@ var _ = Describe("ChangeProcessor", func() {
1146
1152
ObservedGeneration : gw2 .Generation ,
1147
1153
ListenerStatuses : map [string ]state.ListenerStatus {
1148
1154
"listener-80-1" : {
1149
- Valid : false ,
1150
1155
AttachedRoutes : 0 ,
1156
+ Conditions : append (
1157
+ conditions .NewDefaultListenerConditions (),
1158
+ conditions .NewTODO ("GatewayClass is invalid or doesn't exist" ),
1159
+ ),
1151
1160
},
1152
1161
"listener-443-1" : {
1153
- Valid : false ,
1154
1162
AttachedRoutes : 0 ,
1163
+ Conditions : append (
1164
+ conditions .NewDefaultListenerConditions (),
1165
+ conditions .NewTODO ("GatewayClass is invalid or doesn't exist" ),
1166
+ ),
1155
1167
},
1156
1168
},
1157
1169
},
0 commit comments