Skip to content

Commit

Permalink
[YUNIKORN-2094] Add install option to e2e script (apache#713)
Browse files Browse the repository at this point in the history
Support insatalling a cluster for running e2e tests against without
immediately running the e2e tests

Closes: apache#713

Signed-off-by: Wilfred Spiegelenburg <[email protected]>
  • Loading branch information
doupache authored and wilfred-s committed Nov 3, 2023
1 parent 814bbaf commit f2d1803
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,16 @@ echo " web image : ${WEBTEST_IMAGE}"
check_opt "action" "${ACTION}"
check_opt "kind-cluster-name" "${CLUSTER_NAME}"

# this script only supports 2 actions
# this script only supports 3 actions
# 1) test
# - install a K8s cluster with kind
# - install latest yunikorn
# - run e2e tests
# 2) cleanup
# - delete k8s cluster
# 3) install
# - install a K8s cluster with kind
# - install latest yunikorn
if [ "${ACTION}" == "test" ]; then
# make will fail without go installed but we call it before that...
check_cmd "${GO}"
Expand All @@ -266,6 +269,11 @@ if [ "${ACTION}" == "test" ]; then
fi
make e2e_test
exit_on_error "e2e tests failed"
elif [ "${ACTION}" == "install" ]; then
check_cmd "${GO}"
check_opt "kind-node-image-version" "${CLUSTER_VERSION}"
check_opt "chart-path" "${CHART_PATH}"
install_cluster
elif [ "${ACTION}" == "cleanup" ]; then
echo "cleaning up the environment"
delete_cluster
Expand Down

0 comments on commit f2d1803

Please sign in to comment.