Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YUNIKORN-2094] Add install kind cluster option to run-e2e-test script #713

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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