@@ -49,6 +49,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
49
49
c operatorclient.ClientInterface
50
50
crc versioned.Interface
51
51
packageserverClient * packageserverclientset.Clientset
52
+ testCatalogImage string
52
53
)
53
54
54
55
BeforeEach (func () {
@@ -67,6 +68,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
67
68
c = ctx .Ctx ().KubeClient ()
68
69
crc = ctx .Ctx ().OperatorClient ()
69
70
packageserverClient = packageserverclientset .NewForConfigOrDie (ctx .Ctx ().RESTConfig ())
71
+ testCatalogImage = fmt .Sprintf ("%s/test-catalog:e2e" , testClusterRegistry )
70
72
})
71
73
72
74
AfterEach (func () {
@@ -704,7 +706,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
704
706
},
705
707
Spec : v1alpha1.CatalogSourceSpec {
706
708
SourceType : v1alpha1 .SourceTypeGrpc ,
707
- Image : communityOperatorsImage ,
709
+ Image : testCatalogImage ,
708
710
GrpcPodConfig : & v1alpha1.GrpcPodConfig {
709
711
SecurityContextConfig : v1alpha1 .Restricted ,
710
712
},
@@ -764,7 +766,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
764
766
},
765
767
Spec : v1alpha1.CatalogSourceSpec {
766
768
SourceType : v1alpha1 .SourceTypeGrpc ,
767
- Image : communityOperatorsImage ,
769
+ Image : testCatalogImage ,
768
770
GrpcPodConfig : & v1alpha1.GrpcPodConfig {
769
771
SecurityContextConfig : v1alpha1 .Restricted ,
770
772
ExtractContent : & v1alpha1.ExtractContentConfig {
@@ -1075,7 +1077,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
1075
1077
},
1076
1078
Spec : v1alpha1.CatalogSourceSpec {
1077
1079
SourceType : v1alpha1 .SourceTypeGrpc ,
1078
- Image : catSrcImage + " :1.0.0-with-ListBundles-method" ,
1080
+ Image : fmt . Sprintf ( "%s :1.0.0-with-ListBundles-method", catSrcImage ) ,
1079
1081
GrpcPodConfig : & v1alpha1.GrpcPodConfig {
1080
1082
SecurityContextConfig : v1alpha1 .Restricted ,
1081
1083
},
@@ -1126,8 +1128,7 @@ var _ = Describe("Starting CatalogSource e2e tests", func() {
1126
1128
if err != nil {
1127
1129
return err
1128
1130
}
1129
- existingSource .Spec .Image = catSrcImage + ":2.0.0-with-ListBundles-method"
1130
-
1131
+ existingSource .Spec .Image = fmt .Sprintf ("%s:2.0.0-with-ListBundles-method" , catSrcImage )
1131
1132
source , err = crc .OperatorsV1alpha1 ().CatalogSources (source .GetNamespace ()).Update (context .Background (), existingSource , metav1.UpdateOptions {})
1132
1133
return err
1133
1134
}).Should (Succeed ())
0 commit comments