e2e: reuse kind cluster across suites

Currently, each test suite spins up its own kind cluster, which results
in longer e2e test times as each test suite needs to wait for the
cluster to be ready and for images to download. This commit creates two
new virtual test suites that are run before and after the actual e2e
tests and are responsible for creating and destroying a kind cluster
respectively. Any test suite that needs a fresh cluster can still spin
up its own using the `create_cluster` helper in the lib.sh file.

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
This commit is contained in:
Lucas Servén Marín
2021-07-02 14:32:36 +02:00
parent 8c4cb7238c
commit c9e4786893
6 changed files with 16 additions and 11 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@
.push*
bin/
tmp/
e2e/kind.yaml