@@ -350,7 +350,7 @@ func fixRemoteFeastK8sResourceNames(feastK8sResourceNames []string, remoteFeastR
350350}
351351
352352// DeployOperatorFromCode - Creates the images for the operator and deploys it
353- func DeployOperatorFromCode (testDir string ) {
353+ func DeployOperatorFromCode (testDir string , skipBuilds bool ) {
354354 _ , isRunOnOpenShiftCI := os .LookupEnv ("RUN_ON_OPENSHIFT_CI" )
355355 if ! isRunOnOpenShiftCI {
356356 By ("creating manager namespace" )
@@ -361,32 +361,34 @@ func DeployOperatorFromCode(testDir string) {
361361 // projectimage stores the name of the image used in the example
362362 var projectimage = "localhost/feast-operator:v0.0.1"
363363
364- By ("building the manager(Operator) image" )
365- cmd = exec .Command ("make" , "docker-build" , fmt .Sprintf ("IMG=%s" , projectimage ))
366- _ , err = Run (cmd , testDir )
367- ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
368-
369- By ("loading the the manager(Operator) image on Kind" )
370- err = LoadImageToKindClusterWithName (projectimage , testDir )
371- ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
372-
373364 // this image will be built in above make target.
374365 var feastImage = "feastdev/feature-server:dev"
375366 var feastLocalImage = "localhost/feastdev/feature-server:dev"
376367
377- By ("building the feast image" )
378- cmd = exec .Command ("make" , "feast-ci-dev-docker-img" )
379- _ , err = Run (cmd , testDir )
380- ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
381-
382- By ("Tag the local feast image for the integration tests" )
383- cmd = exec .Command ("docker" , "image" , "tag" , feastImage , feastLocalImage )
384- _ , err = Run (cmd , testDir )
385- ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
386-
387- By ("loading the the feast image on Kind cluster" )
388- err = LoadImageToKindClusterWithName (feastLocalImage , testDir )
389- ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
368+ if ! skipBuilds {
369+ By ("building the manager(Operator) image" )
370+ cmd = exec .Command ("make" , "docker-build" , fmt .Sprintf ("IMG=%s" , projectimage ))
371+ _ , err = Run (cmd , testDir )
372+ ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
373+
374+ By ("loading the the manager(Operator) image on Kind" )
375+ err = LoadImageToKindClusterWithName (projectimage , testDir )
376+ ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
377+
378+ By ("building the feast image" )
379+ cmd = exec .Command ("make" , "feast-ci-dev-docker-img" )
380+ _ , err = Run (cmd , testDir )
381+ ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
382+
383+ By ("Tag the local feast image for the integration tests" )
384+ cmd = exec .Command ("docker" , "image" , "tag" , feastImage , feastLocalImage )
385+ _ , err = Run (cmd , testDir )
386+ ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
387+
388+ By ("loading the the feast image on Kind cluster" )
389+ err = LoadImageToKindClusterWithName (feastLocalImage , testDir )
390+ ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
391+ }
390392
391393 By ("installing CRDs" )
392394 cmd = exec .Command ("make" , "install" )
0 commit comments