@@ -330,7 +330,7 @@ func TestClusterExtensionInstallRegistry(t *testing.T) {
330330
331331 clusterExtension , extensionCatalog , sa , ns := testInit (t )
332332 defer testCleanup (t , extensionCatalog , clusterExtension , sa , ns )
333- defer utils .CollectTestArtifacts (t , artifactName , globalClient , cfg )
333+ defer utils .CollectTestArtifacts (t , artifactName , globalClient , globalConfig )
334334
335335 clusterExtension .Spec = ocv1.ClusterExtensionSpec {
336336 Source : ocv1.SourceConfig {
@@ -390,7 +390,7 @@ func TestClusterExtensionInstallRegistryDynamic(t *testing.T) {
390390
391391 clusterExtension , extensionCatalog , sa , ns := testInit (t )
392392 defer testCleanup (t , extensionCatalog , clusterExtension , sa , ns )
393- defer utils .CollectTestArtifacts (t , artifactName , globalClient , cfg )
393+ defer utils .CollectTestArtifacts (t , artifactName , globalClient , globalConfig )
394394
395395 clusterExtension .Spec = ocv1.ClusterExtensionSpec {
396396 Source : ocv1.SourceConfig {
@@ -465,7 +465,7 @@ func TestClusterExtensionInstallRegistryMultipleBundles(t *testing.T) {
465465 require .NoError (t , err )
466466
467467 defer testCleanup (t , extensionCatalog , clusterExtension , sa , ns )
468- defer utils .CollectTestArtifacts (t , artifactName , globalClient , cfg )
468+ defer utils .CollectTestArtifacts (t , artifactName , globalClient , globalConfig )
469469 defer func (cat * ocv1.ClusterCatalog ) {
470470 require .NoError (t , globalClient .Delete (context .Background (), cat ))
471471 require .Eventually (t , func () bool {
@@ -513,7 +513,7 @@ func TestClusterExtensionBlockInstallNonSuccessorVersion(t *testing.T) {
513513
514514 clusterExtension , extensionCatalog , sa , ns := testInit (t )
515515 defer testCleanup (t , extensionCatalog , clusterExtension , sa , ns )
516- defer utils .CollectTestArtifacts (t , artifactName , globalClient , cfg )
516+ defer utils .CollectTestArtifacts (t , artifactName , globalClient , globalConfig )
517517
518518 t .Log ("By creating an ClusterExtension at a specified version" )
519519 clusterExtension .Spec = ocv1.ClusterExtensionSpec {
@@ -576,7 +576,7 @@ func TestClusterExtensionForceInstallNonSuccessorVersion(t *testing.T) {
576576
577577 clusterExtension , extensionCatalog , sa , ns := testInit (t )
578578 defer testCleanup (t , extensionCatalog , clusterExtension , sa , ns )
579- defer utils .CollectTestArtifacts (t , artifactName , globalClient , cfg )
579+ defer utils .CollectTestArtifacts (t , artifactName , globalClient , globalConfig )
580580
581581 t .Log ("By creating an ClusterExtension at a specified version" )
582582 clusterExtension .Spec = ocv1.ClusterExtensionSpec {
@@ -625,7 +625,7 @@ func TestClusterExtensionInstallSuccessorVersion(t *testing.T) {
625625 t .Log ("When resolving upgrade edges" )
626626 clusterExtension , extensionCatalog , sa , ns := testInit (t )
627627 defer testCleanup (t , extensionCatalog , clusterExtension , sa , ns )
628- defer utils .CollectTestArtifacts (t , artifactName , globalClient , cfg )
628+ defer utils .CollectTestArtifacts (t , artifactName , globalClient , globalConfig )
629629
630630 t .Log ("By creating an ClusterExtension at a specified version" )
631631 clusterExtension .Spec = ocv1.ClusterExtensionSpec {
@@ -673,7 +673,7 @@ func TestClusterExtensionInstallReResolvesWhenCatalogIsPatched(t *testing.T) {
673673 t .Log ("It resolves again when a catalog is patched with new ImageRef" )
674674 clusterExtension , extensionCatalog , sa , ns := testInit (t )
675675 defer testCleanup (t , extensionCatalog , clusterExtension , sa , ns )
676- defer utils .CollectTestArtifacts (t , artifactName , globalClient , cfg )
676+ defer utils .CollectTestArtifacts (t , artifactName , globalClient , globalConfig )
677677
678678 clusterExtension .Spec = ocv1.ClusterExtensionSpec {
679679 Source : ocv1.SourceConfig {
@@ -760,7 +760,7 @@ func TestClusterExtensionInstallReResolvesWhenNewCatalog(t *testing.T) {
760760 sa , err := createServiceAccount (context .Background (), types.NamespacedName {Name : clusterExtensionName , Namespace : ns .Name }, clusterExtensionName )
761761 require .NoError (t , err )
762762 defer testCleanup (t , extensionCatalog , clusterExtension , sa , ns )
763- defer utils .CollectTestArtifacts (t , artifactName , globalClient , cfg )
763+ defer utils .CollectTestArtifacts (t , artifactName , globalClient , globalConfig )
764764
765765 clusterExtension .Spec = ocv1.ClusterExtensionSpec {
766766 Source : ocv1.SourceConfig {
@@ -821,7 +821,7 @@ func TestClusterExtensionInstallReResolvesWhenManagedContentChanged(t *testing.T
821821 t .Log ("It resolves again when managed content is changed" )
822822 clusterExtension , extensionCatalog , sa , ns := testInit (t )
823823 defer testCleanup (t , extensionCatalog , clusterExtension , sa , ns )
824- defer utils .CollectTestArtifacts (t , artifactName , globalClient , cfg )
824+ defer utils .CollectTestArtifacts (t , artifactName , globalClient , globalConfig )
825825
826826 clusterExtension .Spec = ocv1.ClusterExtensionSpec {
827827 Source : ocv1.SourceConfig {
@@ -884,7 +884,7 @@ func TestClusterExtensionRecoversFromInitialInstallFailedWhenFailureFixed(t *tes
884884 err := globalClient .Create (context .Background (), sa )
885885 require .NoError (t , err )
886886 defer testCleanup (t , extensionCatalog , clusterExtension , sa , ns )
887- defer utils .CollectTestArtifacts (t , artifactName , globalClient , cfg )
887+ defer utils .CollectTestArtifacts (t , artifactName , globalClient , globalConfig )
888888
889889 clusterExtension .Spec = ocv1.ClusterExtensionSpec {
890890 Source : ocv1.SourceConfig {
0 commit comments