@@ -279,7 +279,8 @@ func TestSyncerVirtualWorkspace(t *testing.T) {
279
279
rootComputeLogicalCluster := logicalcluster .From (export )
280
280
281
281
kubelikeVWDiscoverConfig := rest .CopyConfig (server .BaseConfig (t ))
282
- framework .Eventually (t , func () (found bool , message string ) {
282
+ framework .Eventually (t , func () (found bool , _ string ) {
283
+ var err error
283
284
kubelikeVWDiscoverConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , kubelikeLocationWorkspace , kubelikeSyncer .GetSyncerVirtualWorkspaceURLs ())
284
285
require .NoError (t , err )
285
286
return found , "Syncer virtual workspace URL not found"
@@ -300,7 +301,8 @@ func TestSyncerVirtualWorkspace(t *testing.T) {
300
301
}, wait .ForeverTestTimeout , time .Millisecond * 100 )
301
302
302
303
wildwestVWDiscoverConfig := rest .CopyConfig (server .BaseConfig (t ))
303
- framework .Eventually (t , func () (found bool , message string ) {
304
+ framework .Eventually (t , func () (found bool , _ string ) {
305
+ var err error
304
306
wildwestVWDiscoverConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , wildwestLocationWorkspace , wildwestSyncer .GetSyncerVirtualWorkspaceURLs ())
305
307
require .NoError (t , err )
306
308
return found , "Syncer virtual workspace URL not found"
@@ -405,7 +407,8 @@ func TestSyncerVirtualWorkspace(t *testing.T) {
405
407
}, wait .ForeverTestTimeout , time .Millisecond * 100 , "token secret for default service account not created" )
406
408
407
409
wildwestVWConfig := rest .CopyConfig (server .BaseConfig (t ))
408
- framework .Eventually (t , func () (found bool , message string ) {
410
+ framework .Eventually (t , func () (found bool , _ string ) {
411
+ var err error
409
412
wildwestVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , wildwestLocationWorkspace , wildwestSyncer .GetSyncerVirtualWorkspaceURLs ())
410
413
require .NoError (t , err )
411
414
return found , "Syncer virtual workspace URL not found"
@@ -533,7 +536,8 @@ func TestSyncerVirtualWorkspace(t *testing.T) {
533
536
require .NoError (t , err )
534
537
535
538
wildwestVWConfig := rest .CopyConfig (server .BaseConfig (t ))
536
- framework .Eventually (t , func () (found bool , message string ) {
539
+ framework .Eventually (t , func () (found bool , _ string ) {
540
+ var err error
537
541
wildwestVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , wildwestLocationWorkspace , wildwestSyncer .GetSyncerVirtualWorkspaceURLs ())
538
542
require .NoError (t , err )
539
543
return found , "Syncer virtual workspace URL not found"
@@ -691,7 +695,8 @@ func TestSyncerVirtualWorkspace(t *testing.T) {
691
695
require .NoError (t , err )
692
696
693
697
wildwestVWConfig := rest .CopyConfig (server .BaseConfig (t ))
694
- framework .Eventually (t , func () (found bool , message string ) {
698
+ framework .Eventually (t , func () (found bool , _ string ) {
699
+ var err error
695
700
wildwestVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , consumerWorkspace , wildwestSyncer .GetSyncerVirtualWorkspaceURLs ())
696
701
require .NoError (t , err )
697
702
return found , "Syncer virtual workspace URL not found"
@@ -934,7 +939,8 @@ func TestSyncerVirtualWorkspace(t *testing.T) {
934
939
require .NoError (t , err )
935
940
936
941
wildwestNorthVWConfig := rest .CopyConfig (server .BaseConfig (t ))
937
- framework .Eventually (t , func () (found bool , message string ) {
942
+ framework .Eventually (t , func () (found bool , _ string ) {
943
+ var err error
938
944
wildwestNorthVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , consumerWorkspace , wildwestNorthSyncer .GetSyncerVirtualWorkspaceURLs ())
939
945
require .NoError (t , err )
940
946
return found , "Syncer virtual workspace URL not found"
@@ -943,7 +949,8 @@ func TestSyncerVirtualWorkspace(t *testing.T) {
943
949
require .NoError (t , err )
944
950
945
951
wildwestSouthVWConfig := rest .CopyConfig (server .BaseConfig (t ))
946
- framework .Eventually (t , func () (found bool , message string ) {
952
+ framework .Eventually (t , func () (found bool , _ string ) {
953
+ var err error
947
954
wildwestSouthVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , consumerWorkspace , wildwestSouthSyncer .GetSyncerVirtualWorkspaceURLs ())
948
955
require .NoError (t , err )
949
956
return found , "Syncer virtual workspace URL not found"
@@ -1157,15 +1164,17 @@ func TestSyncerVirtualWorkspace(t *testing.T) {
1157
1164
}, wait .ForeverTestTimeout , time .Millisecond * 100 )
1158
1165
1159
1166
wildwestNorthVWConfig := rest .CopyConfig (server .BaseConfig (t ))
1160
- framework .Eventually (t , func () (found bool , message string ) {
1167
+ framework .Eventually (t , func () (found bool , _ string ) {
1168
+ var err error
1161
1169
wildwestNorthVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , consumerWorkspace , wildwestNorthSyncer .GetSyncerVirtualWorkspaceURLs ())
1162
1170
require .NoError (t , err )
1163
1171
return found , "Syncer virtual workspace URL not found"
1164
1172
}, wait .ForeverTestTimeout , time .Millisecond * 100 , "Syncer virtual workspace URL not found" )
1165
1173
vwNorthClusterClient , err := wildwestclientset .NewForConfig (wildwestNorthVWConfig )
1166
1174
require .NoError (t , err )
1167
1175
wildwestSouthVWConfig := rest .CopyConfig (server .BaseConfig (t ))
1168
- framework .Eventually (t , func () (found bool , message string ) {
1176
+ framework .Eventually (t , func () (found bool , _ string ) {
1177
+ var err error
1169
1178
wildwestSouthVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , consumerWorkspace , wildwestSouthSyncer .GetSyncerVirtualWorkspaceURLs ())
1170
1179
require .NoError (t , err )
1171
1180
return found , "Syncer virtual workspace URL not found"
@@ -1441,7 +1450,8 @@ func TestSyncerVirtualWorkspace(t *testing.T) {
1441
1450
require .Len (t , kcpCowboys .Items , 1 )
1442
1451
1443
1452
wildwestVWConfig := rest .CopyConfig (server .BaseConfig (t ))
1444
- framework .Eventually (t , func () (found bool , message string ) {
1453
+ framework .Eventually (t , func () (found bool , _ string ) {
1454
+ var err error
1445
1455
wildwestVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , consumerWorkspace , wildwestSyncer .GetSyncerVirtualWorkspaceURLs ())
1446
1456
require .NoError (t , err )
1447
1457
return found , "Syncer virtual workspace URL not found"
@@ -1547,7 +1557,8 @@ func TestSyncerVirtualWorkspace(t *testing.T) {
1547
1557
require .NoError (t , err )
1548
1558
1549
1559
wildwestVWConfig := rest .CopyConfig (server .BaseConfig (t ))
1550
- framework .Eventually (t , func () (found bool , message string ) {
1560
+ framework .Eventually (t , func () (found bool , _ string ) {
1561
+ var err error
1551
1562
wildwestVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , consumerWorkspace , wildwestSyncer .GetSyncerVirtualWorkspaceURLs ())
1552
1563
require .NoError (t , err )
1553
1564
return found , "Syncer virtual workspace URL not found"
@@ -1688,7 +1699,8 @@ func TestUpsyncerVirtualWorkspace(t *testing.T) {
1688
1699
t .Cleanup (cancelFunc )
1689
1700
1690
1701
upsyncerVWConfig := rest .CopyConfig (server .BaseConfig (t ))
1691
- framework .Eventually (t , func () (found bool , message string ) {
1702
+ framework .Eventually (t , func () (found bool , _ string ) {
1703
+ var err error
1692
1704
upsyncerVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , ws , syncer .GetUpsyncerVirtualWorkspaceURLs ())
1693
1705
require .NoError (t , err )
1694
1706
return found , "Upsyncer virtual workspace URL not found"
@@ -1738,7 +1750,8 @@ func TestUpsyncerVirtualWorkspace(t *testing.T) {
1738
1750
t .Cleanup (cancelFunc )
1739
1751
1740
1752
upsyncerVWConfig := rest .CopyConfig (server .BaseConfig (t ))
1741
- framework .Eventually (t , func () (found bool , message string ) {
1753
+ framework .Eventually (t , func () (found bool , _ string ) {
1754
+ var err error
1742
1755
upsyncerVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , ws , syncer .GetUpsyncerVirtualWorkspaceURLs ())
1743
1756
require .NoError (t , err )
1744
1757
return found , "Upsyncer virtual workspace URL not found"
@@ -1791,7 +1804,8 @@ func TestUpsyncerVirtualWorkspace(t *testing.T) {
1791
1804
t .Cleanup (cancelFunc )
1792
1805
1793
1806
upsyncerVWConfig := rest .CopyConfig (server .BaseConfig (t ))
1794
- framework .Eventually (t , func () (found bool , message string ) {
1807
+ framework .Eventually (t , func () (found bool , _ string ) {
1808
+ var err error
1795
1809
upsyncerVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , ws , syncer .GetUpsyncerVirtualWorkspaceURLs ())
1796
1810
require .NoError (t , err )
1797
1811
return found , "Upsyncer virtual workspace URL not found"
@@ -1843,7 +1857,8 @@ func TestUpsyncerVirtualWorkspace(t *testing.T) {
1843
1857
t .Cleanup (cancelFunc )
1844
1858
1845
1859
upsyncerVWConfig := rest .CopyConfig (server .BaseConfig (t ))
1846
- framework .Eventually (t , func () (found bool , message string ) {
1860
+ framework .Eventually (t , func () (found bool , _ string ) {
1861
+ var err error
1847
1862
upsyncerVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , ws , syncer .GetUpsyncerVirtualWorkspaceURLs ())
1848
1863
require .NoError (t , err )
1849
1864
return found , "Upsyncer virtual workspace URL not found"
@@ -1885,7 +1900,8 @@ func TestUpsyncerVirtualWorkspace(t *testing.T) {
1885
1900
t .Cleanup (cancelFunc )
1886
1901
1887
1902
upsyncerVWConfig := rest .CopyConfig (server .BaseConfig (t ))
1888
- framework .Eventually (t , func () (found bool , message string ) {
1903
+ framework .Eventually (t , func () (found bool , _ string ) {
1904
+ var err error
1889
1905
upsyncerVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , ws , syncer .GetUpsyncerVirtualWorkspaceURLs ())
1890
1906
require .NoError (t , err )
1891
1907
return found , "Upsyncer virtual workspace URL not found"
@@ -1944,7 +1960,8 @@ func TestUpsyncerVirtualWorkspace(t *testing.T) {
1944
1960
t .Cleanup (cancelFunc )
1945
1961
1946
1962
upsyncerVWConfig := rest .CopyConfig (server .BaseConfig (t ))
1947
- framework .Eventually (t , func () (found bool , message string ) {
1963
+ framework .Eventually (t , func () (found bool , _ string ) {
1964
+ var err error
1948
1965
upsyncerVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , ws , syncer .GetUpsyncerVirtualWorkspaceURLs ())
1949
1966
require .NoError (t , err )
1950
1967
return found , "Upsyncer virtual workspace URL not found"
@@ -2006,7 +2023,8 @@ func TestUpsyncerVirtualWorkspace(t *testing.T) {
2006
2023
t .Cleanup (cancelFunc )
2007
2024
2008
2025
upsyncerVWConfig := rest .CopyConfig (server .BaseConfig (t ))
2009
- framework .Eventually (t , func () (found bool , message string ) {
2026
+ framework .Eventually (t , func () (found bool , _ string ) {
2027
+ var err error
2010
2028
upsyncerVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , ws , syncer .GetUpsyncerVirtualWorkspaceURLs ())
2011
2029
require .NoError (t , err )
2012
2030
return found , "Upsyncer virtual workspace URL not found"
@@ -2096,7 +2114,8 @@ func TestUpsyncerVirtualWorkspace(t *testing.T) {
2096
2114
}, wait .ForeverTestTimeout , time .Millisecond * 100 )
2097
2115
2098
2116
upsyncerVWConfig := rest .CopyConfig (server .BaseConfig (t ))
2099
- framework .Eventually (t , func () (found bool , message string ) {
2117
+ framework .Eventually (t , func () (found bool , _ string ) {
2118
+ var err error
2100
2119
upsyncerVWConfig .Host , found , err = framework .VirtualWorkspaceURL (ctx , kcpClusterClient , upsyncerWS , upsyncer .GetUpsyncerVirtualWorkspaceURLs ())
2101
2120
require .NoError (t , err )
2102
2121
return found , "Upsyncer virtual workspace URL not found"
0 commit comments