@@ -182,6 +182,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
182
182
ObjectMeta : metav1.ObjectMeta {
183
183
Name : "testcluster-my-test-thing" ,
184
184
Labels : map [string ]string {
185
+ agentNameLabel : "textor-the-doctor" ,
185
186
remoteObjectClusterLabel : "testcluster" ,
186
187
remoteObjectNamespaceLabel : "" ,
187
188
remoteObjectNameLabel : "my-test-thing" ,
@@ -208,6 +209,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
208
209
ObjectMeta : metav1.ObjectMeta {
209
210
Name : "testcluster-my-test-thing" ,
210
211
Labels : map [string ]string {
212
+ agentNameLabel : "textor-the-doctor" ,
211
213
remoteObjectClusterLabel : "testcluster" ,
212
214
remoteObjectNamespaceLabel : "" ,
213
215
remoteObjectNameLabel : "my-test-thing" ,
@@ -255,6 +257,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
255
257
ObjectMeta : metav1.ObjectMeta {
256
258
Name : "testcluster-my-test-thing" ,
257
259
Labels : map [string ]string {
260
+ agentNameLabel : "textor-the-doctor" ,
258
261
remoteObjectClusterLabel : "testcluster" ,
259
262
remoteObjectNamespaceLabel : "" ,
260
263
remoteObjectNameLabel : "my-test-thing" ,
@@ -312,6 +315,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
312
315
ObjectMeta : metav1.ObjectMeta {
313
316
Name : "testcluster-my-test-thing" ,
314
317
Labels : map [string ]string {
318
+ agentNameLabel : "textor-the-doctor" ,
315
319
remoteObjectClusterLabel : "testcluster" ,
316
320
remoteObjectNamespaceLabel : "" ,
317
321
remoteObjectNameLabel : "my-test-thing" ,
@@ -348,6 +352,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
348
352
ObjectMeta : metav1.ObjectMeta {
349
353
Name : "testcluster-my-test-thing" ,
350
354
Labels : map [string ]string {
355
+ agentNameLabel : "textor-the-doctor" ,
351
356
remoteObjectClusterLabel : "testcluster" ,
352
357
remoteObjectNamespaceLabel : "" ,
353
358
remoteObjectNameLabel : "my-test-thing" ,
@@ -374,6 +379,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
374
379
ObjectMeta : metav1.ObjectMeta {
375
380
Name : "testcluster-my-test-thing" ,
376
381
Labels : map [string ]string {
382
+ agentNameLabel : "textor-the-doctor" ,
377
383
remoteObjectClusterLabel : "testcluster" ,
378
384
remoteObjectNamespaceLabel : "" ,
379
385
remoteObjectNameLabel : "my-test-thing" ,
@@ -410,6 +416,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
410
416
ObjectMeta : metav1.ObjectMeta {
411
417
Name : "testcluster-my-test-thing" ,
412
418
Labels : map [string ]string {
419
+ agentNameLabel : "textor-the-doctor" ,
413
420
remoteObjectClusterLabel : "testcluster" ,
414
421
remoteObjectNamespaceLabel : "" ,
415
422
remoteObjectNameLabel : "my-test-thing" ,
@@ -436,6 +443,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
436
443
ObjectMeta : metav1.ObjectMeta {
437
444
Name : "testcluster-my-test-thing" ,
438
445
Labels : map [string ]string {
446
+ agentNameLabel : "textor-the-doctor" ,
439
447
remoteObjectClusterLabel : "testcluster" ,
440
448
remoteObjectNamespaceLabel : "" ,
441
449
remoteObjectNameLabel : "my-test-thing" ,
@@ -484,6 +492,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
484
492
"existing-annotation" : "annotation-value" ,
485
493
},
486
494
Labels : map [string ]string {
495
+ agentNameLabel : "textor-the-doctor" ,
487
496
remoteObjectClusterLabel : "testcluster" ,
488
497
remoteObjectNamespaceLabel : "" ,
489
498
remoteObjectNameLabel : "my-test-thing" ,
@@ -525,6 +534,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
525
534
"new-annotation" : "hei-verden" ,
526
535
},
527
536
Labels : map [string ]string {
537
+ agentNameLabel : "textor-the-doctor" ,
528
538
remoteObjectClusterLabel : "testcluster" ,
529
539
remoteObjectNamespaceLabel : "" ,
530
540
remoteObjectNameLabel : "my-test-thing" ,
@@ -564,6 +574,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
564
574
ObjectMeta : metav1.ObjectMeta {
565
575
Name : "testcluster-my-test-thing" ,
566
576
Labels : map [string ]string {
577
+ agentNameLabel : "textor-the-doctor" ,
567
578
remoteObjectClusterLabel : "testcluster" ,
568
579
remoteObjectNamespaceLabel : "" ,
569
580
remoteObjectNameLabel : "my-test-thing" ,
@@ -591,6 +602,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
591
602
ObjectMeta : metav1.ObjectMeta {
592
603
Name : "testcluster-my-test-thing" ,
593
604
Labels : map [string ]string {
605
+ agentNameLabel : "textor-the-doctor" ,
594
606
remoteObjectClusterLabel : "testcluster" ,
595
607
remoteObjectNamespaceLabel : "" ,
596
608
remoteObjectNameLabel : "my-test-thing" ,
@@ -636,6 +648,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
636
648
"prevent-instant-deletion-in-tests" ,
637
649
},
638
650
Labels : map [string ]string {
651
+ agentNameLabel : "textor-the-doctor" ,
639
652
remoteObjectClusterLabel : "testcluster" ,
640
653
remoteObjectNamespaceLabel : "" ,
641
654
remoteObjectNameLabel : "my-test-thing" ,
@@ -667,6 +680,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
667
680
},
668
681
DeletionTimestamp : & nonEmptyTime ,
669
682
Labels : map [string ]string {
683
+ agentNameLabel : "textor-the-doctor" ,
670
684
remoteObjectClusterLabel : "testcluster" ,
671
685
remoteObjectNamespaceLabel : "" ,
672
686
remoteObjectNameLabel : "my-test-thing" ,
@@ -748,6 +762,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
748
762
},
749
763
DeletionTimestamp : & nonEmptyTime ,
750
764
Labels : map [string ]string {
765
+ agentNameLabel : "textor-the-doctor" ,
751
766
remoteObjectClusterLabel : "testcluster" ,
752
767
remoteObjectNamespaceLabel : "" ,
753
768
remoteObjectNameLabel : "my-test-thing" ,
@@ -778,6 +793,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
778
793
},
779
794
DeletionTimestamp : & nonEmptyTime ,
780
795
Labels : map [string ]string {
796
+ agentNameLabel : "textor-the-doctor" ,
781
797
remoteObjectClusterLabel : "testcluster" ,
782
798
remoteObjectNamespaceLabel : "" ,
783
799
remoteObjectNameLabel : "my-test-thing" ,
@@ -809,6 +825,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
809
825
testcase .remoteAPIGroup ,
810
826
nil ,
811
827
stateNamespace ,
828
+ "textor-the-doctor" ,
812
829
)
813
830
if err != nil {
814
831
t .Fatalf ("Failed to create syncer: %v" , err )
@@ -970,6 +987,7 @@ func TestSyncerProcessingSingleResourceWithStatus(t *testing.T) {
970
987
ObjectMeta : metav1.ObjectMeta {
971
988
Name : "testcluster-my-test-thing" ,
972
989
Labels : map [string ]string {
990
+ agentNameLabel : "textor-the-doctor" ,
973
991
remoteObjectClusterLabel : "testcluster" ,
974
992
remoteObjectNamespaceLabel : "" ,
975
993
remoteObjectNameLabel : "my-test-thing" ,
@@ -1002,6 +1020,7 @@ func TestSyncerProcessingSingleResourceWithStatus(t *testing.T) {
1002
1020
ObjectMeta : metav1.ObjectMeta {
1003
1021
Name : "testcluster-my-test-thing" ,
1004
1022
Labels : map [string ]string {
1023
+ agentNameLabel : "textor-the-doctor" ,
1005
1024
remoteObjectClusterLabel : "testcluster" ,
1006
1025
remoteObjectNamespaceLabel : "" ,
1007
1026
remoteObjectNameLabel : "my-test-thing" ,
@@ -1041,6 +1060,7 @@ func TestSyncerProcessingSingleResourceWithStatus(t *testing.T) {
1041
1060
ObjectMeta : metav1.ObjectMeta {
1042
1061
Name : "testcluster-my-test-thing" ,
1043
1062
Labels : map [string ]string {
1063
+ agentNameLabel : "textor-the-doctor" ,
1044
1064
remoteObjectClusterLabel : "testcluster" ,
1045
1065
remoteObjectNamespaceLabel : "" ,
1046
1066
remoteObjectNameLabel : "my-test-thing" ,
@@ -1073,6 +1093,7 @@ func TestSyncerProcessingSingleResourceWithStatus(t *testing.T) {
1073
1093
ObjectMeta : metav1.ObjectMeta {
1074
1094
Name : "testcluster-my-test-thing" ,
1075
1095
Labels : map [string ]string {
1096
+ agentNameLabel : "textor-the-doctor" ,
1076
1097
remoteObjectClusterLabel : "testcluster" ,
1077
1098
remoteObjectNamespaceLabel : "" ,
1078
1099
remoteObjectNameLabel : "my-test-thing" ,
@@ -1106,6 +1127,7 @@ func TestSyncerProcessingSingleResourceWithStatus(t *testing.T) {
1106
1127
testcase .remoteAPIGroup ,
1107
1128
nil ,
1108
1129
stateNamespace ,
1130
+ "textor-the-doctor" ,
1109
1131
)
1110
1132
if err != nil {
1111
1133
t .Fatalf ("Failed to create syncer: %v" , err )
0 commit comments