diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index 5ced2fbef..752dfb11d 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -82,10 +82,10 @@ jobs: - name: E2E Tests run: | - make deploy-ci NAMESPACE=mygatekeeper IMG=localhost:5000/gatekeeper-operator:$GITHUB_SHA - kubectl -n mygatekeeper wait deployment/gatekeeper-operator-controller --for condition=Available --timeout=90s - kubectl -n mygatekeeper logs deployment/gatekeeper-operator-controller -c manager -f > operator.log & - make test-e2e NAMESPACE=mygatekeeper + make deploy-ci NAMESPACE=gatekeeper-system IMG=localhost:5000/gatekeeper-operator:$GITHUB_SHA + kubectl -n gatekeeper-system wait deployment/gatekeeper-operator-controller --for condition=Available --timeout=90s + kubectl -n gatekeeper-system logs deployment/gatekeeper-operator-controller -c manager -f > operator.log & + make test-e2e NAMESPACE=gatekeeper-system - name: Debug if: ${{ failure() }} @@ -123,10 +123,10 @@ jobs: - name: E2E Tests run: | - make deploy-ci NAMESPACE=mygatekeeper IMG=localhost:5000/gatekeeper-operator:$GITHUB_SHA - kubectl -n mygatekeeper wait deployment/gatekeeper-operator-controller --for condition=Available --timeout=90s - kubectl -n mygatekeeper logs deployment/gatekeeper-operator-controller -c manager -f > operator.log & - make test-e2e NAMESPACE=mygatekeeper LABEL_FILTER=config + make deploy-ci NAMESPACE=gatekeeper-system IMG=localhost:5000/gatekeeper-operator:$GITHUB_SHA + kubectl -n gatekeeper-system wait deployment/gatekeeper-operator-controller --for condition=Available --timeout=90s + kubectl -n gatekeeper-system logs deployment/gatekeeper-operator-controller -c manager -f > operator.log & + make test-e2e NAMESPACE=gatekeeper-system LABEL_FILTER=config - name: Debug if: ${{ failure() }} diff --git a/controllers/gatekeeper_controller_test.go b/controllers/gatekeeper_controller_test.go index a9663cf66..5d269f015 100644 --- a/controllers/gatekeeper_controller_test.go +++ b/controllers/gatekeeper_controller_test.go @@ -31,7 +31,7 @@ import ( test "github.com/gatekeeper/gatekeeper-operator/test/e2e/util" ) -var namespace = "mygatekeeper" +var namespace = "gatekeeper-system" func TestDeployWebhookConfigs(t *testing.T) { g := NewWithT(t) diff --git a/test/e2e/util/util.go b/test/e2e/util/util.go index 681862fb3..f09610c60 100644 --- a/test/e2e/util/util.go +++ b/test/e2e/util/util.go @@ -94,7 +94,7 @@ var DefaultDeployment = defaultConfig{ { Key: "kubernetes.io/metadata.name", Operator: metav1.LabelSelectorOpNotIn, - Values: []string{"mygatekeeper"}, + Values: []string{"gatekeeper-system"}, }, }, },