Skip to content

Commit

Permalink
Merge pull request #348 from sthaha/fix-test-ns
Browse files Browse the repository at this point in the history
fix(test): accept deployment ns
  • Loading branch information
vprashar2929 authored Jan 23, 2024
2 parents 398a35c + 309fa0e commit e4f4fb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"os"
"testing"

"github.com/sustainable.computing.io/kepler-operator/pkg/controllers"
"github.com/sustainable.computing.io/kepler-operator/pkg/utils/k8s"
)

Expand All @@ -30,6 +31,9 @@ var (

func TestMain(m *testing.M) {
openshift := flag.Bool("openshift", true, "Indicate if tests are run aginast an OpenShift cluster.")
flag.StringVar(&controllers.KeplerDeploymentNS, "deployment-namespace", controllers.KeplerDeploymentNS,
"Namespace where kepler and its components are deployed.")

flag.Parse()

if *openshift {
Expand Down

0 comments on commit e4f4fb0

Please sign in to comment.