Skip to content

Commit

Permalink
Merge pull request #4748 from nicolaferraro/e2e-unstable
Browse files Browse the repository at this point in the history
operator: add make task for e2e-unstable tests
  • Loading branch information
nicolaferraro committed May 17, 2022
2 parents 55ca70d + 335aa17 commit 1b47f7e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/dbuild
bin
_e2e_artifacts/
_e2e_unstable_artifacts/
_helm_e2e_artifacts/
/src/go/k8s/testbin/*
/src/go/k8s/cm-verifier
Expand Down
5 changes: 5 additions & 0 deletions src/go/k8s/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ e2e-tests: kuttl test docker-build docker-build-configurator
echo "~~~ Running kuttl tests :k8s:"
$(KUTTL) test $(TEST_ONLY_FLAG) $(KUTTL_TEST_FLAGS)

# Execute end to end unstable tests
e2e-unstable-tests: kuttl test docker-build docker-build-configurator
echo "~~~ Running kuttl unstable tests :k8s:"
$(KUTTL) test --config kuttl-unstable-test.yaml --kind-context=${PR_NR:-kind} $(TEST_ONLY_FLAG) $(KUTTL_TEST_FLAGS)

# Execute end to end tests using helm as an installation
helm-e2e-tests: kuttl test docker-build docker-build-configurator
echo "~~~ Running kuttl tests :k8s:"
Expand Down
24 changes: 24 additions & 0 deletions src/go/k8s/kuttl-unstable-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: kuttl.dev/v1beta1
kind: TestSuite
startKIND: true
skipDelete: true
skipClusterDelete: true
kindContainers:
- vectorized/redpanda-operator:dev
- vectorized/configurator:dev
- localhost/redpanda:dev
testDirs:
- ./tests/e2e-unstable
kindConfig: ./kind.yaml
kindNodeCache: false
commands:
- command: "kubectl taint nodes -l node-role.kubernetes.io/master= node-role.kubernetes.io/master:NoSchedule-"
- command: "./hack/install-cert-manager.sh"
- command: "kubectl create -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/e23ff77fceba6a5d9f190f5d1a123c87701dc964/bundle.yaml"
- command: "make deploy"
- command: "./hack/wait-for-webhook-ready.sh"
- command: "mkdir -p tests/_e2e_unstable_artifacts"
artifactsDir: tests/_e2e_unstable_artifacts
timeout: 300
reportFormat: xml
parallel: 1

0 comments on commit 1b47f7e

Please sign in to comment.