@@ -93,14 +93,14 @@ var _ = Describe("Install Plan", func() {
93
93
94
94
// Create the catalog sources
95
95
require .NotEqual (GinkgoT (), "" , testNamespace )
96
- _ , cleanupDependentCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , dependentCatalogName , testNamespace , dependentManifests , []apiextensions.CustomResourceDefinition {dependentCRD }, []operatorsv1alpha1.ClusterServiceVersion {dependentCSV })
96
+ _ , cleanupDependentCatalogSource := createInternalCatalogSource (c , crc , dependentCatalogName , testNamespace , dependentManifests , []apiextensions.CustomResourceDefinition {dependentCRD }, []operatorsv1alpha1.ClusterServiceVersion {dependentCSV })
97
97
defer cleanupDependentCatalogSource ()
98
98
99
99
// Attempt to get the catalog source before creating install plan
100
100
_ , err := fetchCatalogSourceOnStatus (crc , dependentCatalogName , testNamespace , catalogSourceRegistryPodSynced )
101
101
require .NoError (GinkgoT (), err )
102
102
103
- _ , cleanupMainCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogName , testNamespace , mainManifests , nil , []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
103
+ _ , cleanupMainCatalogSource := createInternalCatalogSource (c , crc , mainCatalogName , testNamespace , mainManifests , nil , []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
104
104
defer cleanupMainCatalogSource ()
105
105
106
106
// Attempt to get the catalog source before creating install plan
@@ -265,7 +265,7 @@ var _ = Describe("Install Plan", func() {
265
265
266
266
// Create the catalog source
267
267
mainCatalogSourceName := genName ("mock-ocs-main-" + strings .ToLower (CurrentGinkgoTestDescription ().TestText ) + "-" )
268
- _ , cleanupCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogSourceName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {dependentCRD , mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {dependentBetaCSV , dependentStableCSV , mainStableCSV , mainBetaCSV })
268
+ _ , cleanupCatalogSource := createInternalCatalogSource (c , crc , mainCatalogSourceName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {dependentCRD , mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {dependentBetaCSV , dependentStableCSV , mainStableCSV , mainBetaCSV })
269
269
defer cleanupCatalogSource ()
270
270
271
271
// Attempt to get the catalog source before creating install plan(s)
@@ -390,7 +390,7 @@ var _ = Describe("Install Plan", func() {
390
390
391
391
// Create the catalog source
392
392
mainCatalogSourceName := genName ("mock-ocs-main-" + strings .ToLower (CurrentGinkgoTestDescription ().TestText ) + "-" )
393
- _ , cleanupCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogSourceName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {dependentCRD , mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {dependentBetaCSV , dependentStableCSV , mainStableCSV , mainBetaCSV })
393
+ _ , cleanupCatalogSource := createInternalCatalogSource (c , crc , mainCatalogSourceName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {dependentCRD , mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {dependentBetaCSV , dependentStableCSV , mainStableCSV , mainBetaCSV })
394
394
defer cleanupCatalogSource ()
395
395
396
396
// Attempt to get the catalog source before creating install plan(s)
@@ -764,7 +764,7 @@ var _ = Describe("Install Plan", func() {
764
764
765
765
// Create the catalog source
766
766
mainCatalogSourceName := genName ("mock-ocs-main-" )
767
- _ , cleanupCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogSourceName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {* tt .oldCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainStableCSV , mainBetaCSV })
767
+ _ , cleanupCatalogSource := createInternalCatalogSource (c , crc , mainCatalogSourceName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {* tt .oldCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainStableCSV , mainBetaCSV })
768
768
defer cleanupCatalogSource ()
769
769
770
770
// Attempt to get the catalog source before creating install plan(s)
@@ -966,7 +966,7 @@ var _ = Describe("Install Plan", func() {
966
966
967
967
// Create the catalog source
968
968
mainCatalogSourceName := genName ("mock-ocs-main-" )
969
- _ , cleanupCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogSourceName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {* tt .oldCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainStableCSV })
969
+ _ , cleanupCatalogSource := createInternalCatalogSource (c , crc , mainCatalogSourceName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {* tt .oldCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainStableCSV })
970
970
defer cleanupCatalogSource ()
971
971
972
972
// Attempt to get the catalog source before creating install plan(s)
@@ -1197,7 +1197,7 @@ var _ = Describe("Install Plan", func() {
1197
1197
},
1198
1198
}
1199
1199
1200
- _ , cleanupMainCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
1200
+ _ , cleanupMainCatalogSource := createInternalCatalogSource (c , crc , mainCatalogName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
1201
1201
defer cleanupMainCatalogSource ()
1202
1202
1203
1203
// Attempt to get the catalog source before creating install plan
@@ -1384,7 +1384,7 @@ var _ = Describe("Install Plan", func() {
1384
1384
},
1385
1385
}
1386
1386
1387
- _ , cleanupMainCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
1387
+ _ , cleanupMainCatalogSource := createInternalCatalogSource (c , crc , mainCatalogName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
1388
1388
defer cleanupMainCatalogSource ()
1389
1389
1390
1390
// Attempt to get the catalog source before creating install plan
@@ -1588,7 +1588,7 @@ var _ = Describe("Install Plan", func() {
1588
1588
DefaultChannelName : stableChannel ,
1589
1589
},
1590
1590
}
1591
- _ , cleanupMainCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
1591
+ _ , cleanupMainCatalogSource := createInternalCatalogSource (c , crc , mainCatalogName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
1592
1592
defer cleanupMainCatalogSource ()
1593
1593
1594
1594
// Attempt to get the catalog source before creating install plan
@@ -1795,7 +1795,7 @@ var _ = Describe("Install Plan", func() {
1795
1795
}
1796
1796
1797
1797
// Create the catalog sources
1798
- _ , cleanupMainCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
1798
+ _ , cleanupMainCatalogSource := createInternalCatalogSource (c , crc , mainCatalogName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {mainCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
1799
1799
defer cleanupMainCatalogSource ()
1800
1800
1801
1801
// Attempt to get the catalog source before creating install plan
@@ -1979,7 +1979,7 @@ var _ = Describe("Install Plan", func() {
1979
1979
}
1980
1980
1981
1981
// Create the catalog sources
1982
- _ , cleanupMainCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {updatedCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
1982
+ _ , cleanupMainCatalogSource := createInternalCatalogSource (c , crc , mainCatalogName , testNamespace , mainManifests , []apiextensions.CustomResourceDefinition {updatedCRD }, []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
1983
1983
defer cleanupMainCatalogSource ()
1984
1984
1985
1985
// Attempt to get the catalog source before creating install plan
@@ -2115,7 +2115,7 @@ var _ = Describe("Install Plan", func() {
2115
2115
2116
2116
// Create CatalogSource
2117
2117
mainCatalogSourceName := genName ("nginx-catalog" )
2118
- _ , cleanupCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogSourceName , testNamespace , manifests , []apiextensions.CustomResourceDefinition {crd }, []operatorsv1alpha1.ClusterServiceVersion {stableCSV })
2118
+ _ , cleanupCatalogSource := createInternalCatalogSource (c , crc , mainCatalogSourceName , testNamespace , manifests , []apiextensions.CustomResourceDefinition {crd }, []operatorsv1alpha1.ClusterServiceVersion {stableCSV })
2119
2119
defer cleanupCatalogSource ()
2120
2120
2121
2121
// Attempt to get CatalogSource
@@ -2224,6 +2224,7 @@ var _ = Describe("Install Plan", func() {
2224
2224
done := make (chan struct {})
2225
2225
errExit := make (chan error )
2226
2226
go func () {
2227
+ defer GinkgoRecover ()
2227
2228
for {
2228
2229
select {
2229
2230
case evt , ok := <- crWatcher .ResultChan ():
@@ -2363,7 +2364,7 @@ var _ = Describe("Install Plan", func() {
2363
2364
c := newKubeClient ()
2364
2365
crc := newCRClient ()
2365
2366
catalogSourceName := genName ("mock-nginx-" )
2366
- _ , cleanupCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , catalogSourceName , testNamespace , manifests , []apiextensions.CustomResourceDefinition {crd }, []operatorsv1alpha1.ClusterServiceVersion {csv })
2367
+ _ , cleanupCatalogSource := createInternalCatalogSource (c , crc , catalogSourceName , testNamespace , manifests , []apiextensions.CustomResourceDefinition {crd }, []operatorsv1alpha1.ClusterServiceVersion {csv })
2367
2368
defer cleanupCatalogSource ()
2368
2369
2369
2370
// Attempt to get the catalog source before creating install plan
@@ -2544,7 +2545,7 @@ var _ = Describe("Install Plan", func() {
2544
2545
}
2545
2546
2546
2547
// Create the dependent catalog source
2547
- _ , cleanupDependentCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , dependentCatalogName , ns .GetName (), dependentManifests , []apiextensions.CustomResourceDefinition {dependentCRD }, []operatorsv1alpha1.ClusterServiceVersion {dependentCSV })
2548
+ _ , cleanupDependentCatalogSource := createInternalCatalogSource (c , crc , dependentCatalogName , ns .GetName (), dependentManifests , []apiextensions.CustomResourceDefinition {dependentCRD }, []operatorsv1alpha1.ClusterServiceVersion {dependentCSV })
2548
2549
defer cleanupDependentCatalogSource ()
2549
2550
2550
2551
// Attempt to get the catalog source before creating install plan
@@ -2556,6 +2557,7 @@ var _ = Describe("Install Plan", func() {
2556
2557
for i := 0 ; i < 4 ; i ++ { // Creating more increases the odds that the race condition will be triggered
2557
2558
wg .Add (1 )
2558
2559
go func (i int ) {
2560
+ defer GinkgoRecover ()
2559
2561
// Create a CatalogSource pointing to the grpc pod
2560
2562
addressSource := & operatorsv1alpha1.CatalogSource {
2561
2563
TypeMeta : metav1.TypeMeta {
@@ -2581,7 +2583,7 @@ var _ = Describe("Install Plan", func() {
2581
2583
wg .Wait ()
2582
2584
2583
2585
// Create the main catalog source
2584
- _ , cleanupMainCatalogSource := createInternalCatalogSource (GinkgoT (), c , crc , mainCatalogName , ns .GetName (), mainManifests , nil , []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
2586
+ _ , cleanupMainCatalogSource := createInternalCatalogSource (c , crc , mainCatalogName , ns .GetName (), mainManifests , nil , []operatorsv1alpha1.ClusterServiceVersion {mainCSV })
2585
2587
defer cleanupMainCatalogSource ()
2586
2588
2587
2589
// Attempt to get the catalog source before creating install plan
0 commit comments