Rename cleanup. Add to readme.

This commit is contained in:
Jan Mußler 2020-10-27 17:59:10 +01:00
parent 30ddfc9ad8
commit 474d4d974e
2 changed files with 10 additions and 2 deletions

View File

@ -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):

View File

@ -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