@@ -31,8 +31,9 @@ const (
31
31
func createRoute (name string , gateway string , hostname string , backendRefs ... v1beta1.HTTPBackendRef ) * v1beta1.HTTPRoute {
32
32
return & v1beta1.HTTPRoute {
33
33
ObjectMeta : metav1.ObjectMeta {
34
- Namespace : "test" ,
35
- Name : name ,
34
+ Namespace : "test" ,
35
+ Name : name ,
36
+ Generation : 1 ,
36
37
},
37
38
Spec : v1beta1.HTTPRouteSpec {
38
39
CommonRouteSpec : v1beta1.CommonRouteSpec {
@@ -247,6 +248,7 @@ var _ = Describe("ChangeProcessor", func() {
247
248
IgnoredGatewayStatuses : map [types.NamespacedName ]state.IgnoredGatewayStatus {},
248
249
HTTPRouteStatuses : map [types.NamespacedName ]state.HTTPRouteStatus {
249
250
{Namespace : "test" , Name : "hr-1" }: {
251
+ ObservedGeneration : hr1 .Generation ,
250
252
ParentStatuses : map [string ]state.ParentStatus {
251
253
"listener-80-1" : {Attached : false },
252
254
"listener-443-1" : {Attached : false },
@@ -331,6 +333,7 @@ var _ = Describe("ChangeProcessor", func() {
331
333
IgnoredGatewayStatuses : map [types.NamespacedName ]state.IgnoredGatewayStatus {},
332
334
HTTPRouteStatuses : map [types.NamespacedName ]state.HTTPRouteStatus {
333
335
{Namespace : "test" , Name : "hr-1" }: {
336
+ ObservedGeneration : hr1 .Generation ,
334
337
ParentStatuses : map [string ]state.ParentStatus {
335
338
"listener-80-1" : {Attached : true },
336
339
"listener-443-1" : {Attached : true },
@@ -424,6 +427,7 @@ var _ = Describe("ChangeProcessor", func() {
424
427
IgnoredGatewayStatuses : map [types.NamespacedName ]state.IgnoredGatewayStatus {},
425
428
HTTPRouteStatuses : map [types.NamespacedName ]state.HTTPRouteStatus {
426
429
{Namespace : "test" , Name : "hr-1" }: {
430
+ ObservedGeneration : hr1Updated .Generation ,
427
431
ParentStatuses : map [string ]state.ParentStatus {
428
432
"listener-80-1" : {Attached : true },
429
433
"listener-443-1" : {Attached : true },
@@ -517,6 +521,7 @@ var _ = Describe("ChangeProcessor", func() {
517
521
IgnoredGatewayStatuses : map [types.NamespacedName ]state.IgnoredGatewayStatus {},
518
522
HTTPRouteStatuses : map [types.NamespacedName ]state.HTTPRouteStatus {
519
523
{Namespace : "test" , Name : "hr-1" }: {
524
+ ObservedGeneration : hr1Updated .Generation ,
520
525
ParentStatuses : map [string ]state.ParentStatus {
521
526
"listener-80-1" : {Attached : true },
522
527
"listener-443-1" : {Attached : true },
@@ -610,6 +615,7 @@ var _ = Describe("ChangeProcessor", func() {
610
615
IgnoredGatewayStatuses : map [types.NamespacedName ]state.IgnoredGatewayStatus {},
611
616
HTTPRouteStatuses : map [types.NamespacedName ]state.HTTPRouteStatus {
612
617
{Namespace : "test" , Name : "hr-1" }: {
618
+ ObservedGeneration : hr1Updated .Generation ,
613
619
ParentStatuses : map [string ]state.ParentStatus {
614
620
"listener-80-1" : {Attached : true },
615
621
"listener-443-1" : {Attached : true },
@@ -706,6 +712,7 @@ var _ = Describe("ChangeProcessor", func() {
706
712
},
707
713
HTTPRouteStatuses : map [types.NamespacedName ]state.HTTPRouteStatus {
708
714
{Namespace : "test" , Name : "hr-1" }: {
715
+ ObservedGeneration : hr1Updated .Generation ,
709
716
ParentStatuses : map [string ]state.ParentStatus {
710
717
"listener-80-1" : {Attached : true },
711
718
"listener-443-1" : {Attached : true },
@@ -792,12 +799,14 @@ var _ = Describe("ChangeProcessor", func() {
792
799
},
793
800
HTTPRouteStatuses : map [types.NamespacedName ]state.HTTPRouteStatus {
794
801
{Namespace : "test" , Name : "hr-1" }: {
802
+ ObservedGeneration : hr1Updated .Generation ,
795
803
ParentStatuses : map [string ]state.ParentStatus {
796
804
"listener-80-1" : {Attached : true },
797
805
"listener-443-1" : {Attached : true },
798
806
},
799
807
},
800
808
{Namespace : "test" , Name : "hr-2" }: {
809
+ ObservedGeneration : hr2 .Generation ,
801
810
ParentStatuses : map [string ]state.ParentStatus {
802
811
"listener-80-1" : {Attached : false },
803
812
"listener-443-1" : {Attached : false },
@@ -880,6 +889,7 @@ var _ = Describe("ChangeProcessor", func() {
880
889
IgnoredGatewayStatuses : map [types.NamespacedName ]state.IgnoredGatewayStatus {},
881
890
HTTPRouteStatuses : map [types.NamespacedName ]state.HTTPRouteStatus {
882
891
{Namespace : "test" , Name : "hr-2" }: {
892
+ ObservedGeneration : hr2 .Generation ,
883
893
ParentStatuses : map [string ]state.ParentStatus {
884
894
"listener-80-1" : {Attached : true },
885
895
"listener-443-1" : {Attached : true },
0 commit comments