Skip to content

Commit

Permalink
Avoid platform while running the e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sridhar Gaddam <[email protected]>
  • Loading branch information
sridhargaddam committed Jan 10, 2025
1 parent ccf290c commit 479860b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion tests/e2e/ambient/ambient_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
var (
cl client.Client
err error
ocp = env.GetBool("OCP", false)
operatorNamespace = common.OperatorNamespace
deploymentName = env.Get("DEPLOYMENT_NAME", "sail-operator")
controlPlaneNamespace = env.Get("CONTROL_PLANE_NS", "istio-system")
Expand Down
7 changes: 1 addition & 6 deletions tests/e2e/ambient/ambient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,10 @@ var _ = Describe("Ambient configuration ", Ordered, func() {
BeforeAll(func(ctx SpecContext) {
Expect(k.CreateNamespace(operatorNamespace)).To(Succeed(), "Namespace failed to be created")

extraArg := ""
if ocp {
extraArg = "--set=platform=openshift"
}

if skipDeploy {
Success("Skipping operator installation because it was deployed externally")
} else {
Expect(common.InstallOperatorViaHelm(extraArg)).
Expect(common.InstallOperatorViaHelm()).
To(Succeed(), "Operator failed to be deployed")
}

Expand Down

0 comments on commit 479860b

Please sign in to comment.