diff --git a/e2e/README.md b/e2e/README.md index 0b9bd6c39..92a1fc731 100644 --- a/e2e/README.md +++ b/e2e/README.md @@ -71,6 +71,14 @@ kubectl get pods ./scripts/get_logs.sh ``` +## Cleaning up Kind + +To cleanup kind and start fresh + +```bash +e2e/run.sh cleanup +``` + ## Covered use cases The current tests are all bundled in [`test_e2e.py`](tests/test_e2e.py): diff --git a/e2e/run.sh b/e2e/run.sh index 5bdfdd0a9..0024a2569 100755 --- a/e2e/run.sh +++ b/e2e/run.sh @@ -68,7 +68,7 @@ function run_tests(){ -e OPERATOR_IMAGE="${operator_image}" "${e2e_test_runner_image}" ${E2E_TEST_CASE-} $@ } -function clean_up(){ +function cleanup(){ echo "Executing cleanup" unset KUBECONFIG kind delete cluster --name ${cluster_name} @@ -77,7 +77,7 @@ function clean_up(){ function main(){ echo "Entering main function..." - [[ -z ${NOCLEANUP-} ]] && trap "clean_up" QUIT TERM EXIT + [[ -z ${NOCLEANUP-} ]] && trap "cleanup" QUIT TERM EXIT pull_images [[ ! -f ${kubeconfig_path} ]] && start_kind load_operator_image