@@ -182,6 +182,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
182182 ObjectMeta : metav1.ObjectMeta {
183183 Name : "testcluster-my-test-thing" ,
184184 Labels : map [string ]string {
185+ agentNameLabel : "textor-the-doctor" ,
185186 remoteObjectClusterLabel : "testcluster" ,
186187 remoteObjectNamespaceLabel : "" ,
187188 remoteObjectNameLabel : "my-test-thing" ,
@@ -208,6 +209,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
208209 ObjectMeta : metav1.ObjectMeta {
209210 Name : "testcluster-my-test-thing" ,
210211 Labels : map [string ]string {
212+ agentNameLabel : "textor-the-doctor" ,
211213 remoteObjectClusterLabel : "testcluster" ,
212214 remoteObjectNamespaceLabel : "" ,
213215 remoteObjectNameLabel : "my-test-thing" ,
@@ -255,6 +257,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
255257 ObjectMeta : metav1.ObjectMeta {
256258 Name : "testcluster-my-test-thing" ,
257259 Labels : map [string ]string {
260+ agentNameLabel : "textor-the-doctor" ,
258261 remoteObjectClusterLabel : "testcluster" ,
259262 remoteObjectNamespaceLabel : "" ,
260263 remoteObjectNameLabel : "my-test-thing" ,
@@ -312,6 +315,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
312315 ObjectMeta : metav1.ObjectMeta {
313316 Name : "testcluster-my-test-thing" ,
314317 Labels : map [string ]string {
318+ agentNameLabel : "textor-the-doctor" ,
315319 remoteObjectClusterLabel : "testcluster" ,
316320 remoteObjectNamespaceLabel : "" ,
317321 remoteObjectNameLabel : "my-test-thing" ,
@@ -348,6 +352,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
348352 ObjectMeta : metav1.ObjectMeta {
349353 Name : "testcluster-my-test-thing" ,
350354 Labels : map [string ]string {
355+ agentNameLabel : "textor-the-doctor" ,
351356 remoteObjectClusterLabel : "testcluster" ,
352357 remoteObjectNamespaceLabel : "" ,
353358 remoteObjectNameLabel : "my-test-thing" ,
@@ -374,6 +379,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
374379 ObjectMeta : metav1.ObjectMeta {
375380 Name : "testcluster-my-test-thing" ,
376381 Labels : map [string ]string {
382+ agentNameLabel : "textor-the-doctor" ,
377383 remoteObjectClusterLabel : "testcluster" ,
378384 remoteObjectNamespaceLabel : "" ,
379385 remoteObjectNameLabel : "my-test-thing" ,
@@ -410,6 +416,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
410416 ObjectMeta : metav1.ObjectMeta {
411417 Name : "testcluster-my-test-thing" ,
412418 Labels : map [string ]string {
419+ agentNameLabel : "textor-the-doctor" ,
413420 remoteObjectClusterLabel : "testcluster" ,
414421 remoteObjectNamespaceLabel : "" ,
415422 remoteObjectNameLabel : "my-test-thing" ,
@@ -436,6 +443,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
436443 ObjectMeta : metav1.ObjectMeta {
437444 Name : "testcluster-my-test-thing" ,
438445 Labels : map [string ]string {
446+ agentNameLabel : "textor-the-doctor" ,
439447 remoteObjectClusterLabel : "testcluster" ,
440448 remoteObjectNamespaceLabel : "" ,
441449 remoteObjectNameLabel : "my-test-thing" ,
@@ -484,6 +492,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
484492 "existing-annotation" : "annotation-value" ,
485493 },
486494 Labels : map [string ]string {
495+ agentNameLabel : "textor-the-doctor" ,
487496 remoteObjectClusterLabel : "testcluster" ,
488497 remoteObjectNamespaceLabel : "" ,
489498 remoteObjectNameLabel : "my-test-thing" ,
@@ -525,6 +534,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
525534 "new-annotation" : "hei-verden" ,
526535 },
527536 Labels : map [string ]string {
537+ agentNameLabel : "textor-the-doctor" ,
528538 remoteObjectClusterLabel : "testcluster" ,
529539 remoteObjectNamespaceLabel : "" ,
530540 remoteObjectNameLabel : "my-test-thing" ,
@@ -564,6 +574,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
564574 ObjectMeta : metav1.ObjectMeta {
565575 Name : "testcluster-my-test-thing" ,
566576 Labels : map [string ]string {
577+ agentNameLabel : "textor-the-doctor" ,
567578 remoteObjectClusterLabel : "testcluster" ,
568579 remoteObjectNamespaceLabel : "" ,
569580 remoteObjectNameLabel : "my-test-thing" ,
@@ -591,6 +602,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
591602 ObjectMeta : metav1.ObjectMeta {
592603 Name : "testcluster-my-test-thing" ,
593604 Labels : map [string ]string {
605+ agentNameLabel : "textor-the-doctor" ,
594606 remoteObjectClusterLabel : "testcluster" ,
595607 remoteObjectNamespaceLabel : "" ,
596608 remoteObjectNameLabel : "my-test-thing" ,
@@ -636,6 +648,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
636648 "prevent-instant-deletion-in-tests" ,
637649 },
638650 Labels : map [string ]string {
651+ agentNameLabel : "textor-the-doctor" ,
639652 remoteObjectClusterLabel : "testcluster" ,
640653 remoteObjectNamespaceLabel : "" ,
641654 remoteObjectNameLabel : "my-test-thing" ,
@@ -667,6 +680,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
667680 },
668681 DeletionTimestamp : & nonEmptyTime ,
669682 Labels : map [string ]string {
683+ agentNameLabel : "textor-the-doctor" ,
670684 remoteObjectClusterLabel : "testcluster" ,
671685 remoteObjectNamespaceLabel : "" ,
672686 remoteObjectNameLabel : "my-test-thing" ,
@@ -748,6 +762,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
748762 },
749763 DeletionTimestamp : & nonEmptyTime ,
750764 Labels : map [string ]string {
765+ agentNameLabel : "textor-the-doctor" ,
751766 remoteObjectClusterLabel : "testcluster" ,
752767 remoteObjectNamespaceLabel : "" ,
753768 remoteObjectNameLabel : "my-test-thing" ,
@@ -778,6 +793,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
778793 },
779794 DeletionTimestamp : & nonEmptyTime ,
780795 Labels : map [string ]string {
796+ agentNameLabel : "textor-the-doctor" ,
781797 remoteObjectClusterLabel : "testcluster" ,
782798 remoteObjectNamespaceLabel : "" ,
783799 remoteObjectNameLabel : "my-test-thing" ,
@@ -809,6 +825,7 @@ func TestSyncerProcessingSingleResourceWithoutStatus(t *testing.T) {
809825 testcase .remoteAPIGroup ,
810826 nil ,
811827 stateNamespace ,
828+ "textor-the-doctor" ,
812829 )
813830 if err != nil {
814831 t .Fatalf ("Failed to create syncer: %v" , err )
@@ -970,6 +987,7 @@ func TestSyncerProcessingSingleResourceWithStatus(t *testing.T) {
970987 ObjectMeta : metav1.ObjectMeta {
971988 Name : "testcluster-my-test-thing" ,
972989 Labels : map [string ]string {
990+ agentNameLabel : "textor-the-doctor" ,
973991 remoteObjectClusterLabel : "testcluster" ,
974992 remoteObjectNamespaceLabel : "" ,
975993 remoteObjectNameLabel : "my-test-thing" ,
@@ -1002,6 +1020,7 @@ func TestSyncerProcessingSingleResourceWithStatus(t *testing.T) {
10021020 ObjectMeta : metav1.ObjectMeta {
10031021 Name : "testcluster-my-test-thing" ,
10041022 Labels : map [string ]string {
1023+ agentNameLabel : "textor-the-doctor" ,
10051024 remoteObjectClusterLabel : "testcluster" ,
10061025 remoteObjectNamespaceLabel : "" ,
10071026 remoteObjectNameLabel : "my-test-thing" ,
@@ -1041,6 +1060,7 @@ func TestSyncerProcessingSingleResourceWithStatus(t *testing.T) {
10411060 ObjectMeta : metav1.ObjectMeta {
10421061 Name : "testcluster-my-test-thing" ,
10431062 Labels : map [string ]string {
1063+ agentNameLabel : "textor-the-doctor" ,
10441064 remoteObjectClusterLabel : "testcluster" ,
10451065 remoteObjectNamespaceLabel : "" ,
10461066 remoteObjectNameLabel : "my-test-thing" ,
@@ -1073,6 +1093,7 @@ func TestSyncerProcessingSingleResourceWithStatus(t *testing.T) {
10731093 ObjectMeta : metav1.ObjectMeta {
10741094 Name : "testcluster-my-test-thing" ,
10751095 Labels : map [string ]string {
1096+ agentNameLabel : "textor-the-doctor" ,
10761097 remoteObjectClusterLabel : "testcluster" ,
10771098 remoteObjectNamespaceLabel : "" ,
10781099 remoteObjectNameLabel : "my-test-thing" ,
@@ -1106,6 +1127,7 @@ func TestSyncerProcessingSingleResourceWithStatus(t *testing.T) {
11061127 testcase .remoteAPIGroup ,
11071128 nil ,
11081129 stateNamespace ,
1130+ "textor-the-doctor" ,
11091131 )
11101132 if err != nil {
11111133 t .Fatalf ("Failed to create syncer: %v" , err )
0 commit comments