Provide control over e2e cleanup
This adds a -k option to keep the clusters running after an e2e run,
and the complementary -c option to destroy the clusters.
@@ -130,7 +130,14 @@ function cleanup {
for i in 1 2 3; do kind delete cluster --name=cluster${i}; done
}
+if [[ $1 = -c ]]; then
+ cleanup
+ exit 0
+fi
+
+if [[ $1 != -k ]]; then
trap cleanup EXIT
+fi
helm init --client-only
helm repo add submariner-latest https://releases.rancher.com/submariner-charts/latest
