This is an automated email from the ASF dual-hosted git repository.

wilfreds pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git


The following commit(s) were added to refs/heads/master by this push:
     new f2d1803d [YUNIKORN-2094] Add install option to e2e script (#713)
f2d1803d is described below

commit f2d1803dce533405268fe3e04a9b6b7a8822d785
Author: DouPache <[email protected]>
AuthorDate: Fri Nov 3 13:41:26 2023 +1100

    [YUNIKORN-2094] Add install option to e2e script (#713)
    
    Support insatalling a cluster for running e2e tests against without
    immediately running the e2e tests
    
    Closes: #713
    
    Signed-off-by: Wilfred Spiegelenburg <[email protected]>
---
 scripts/run-e2e-tests.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/scripts/run-e2e-tests.sh b/scripts/run-e2e-tests.sh
index 762df0f7..f245ab1a 100755
--- a/scripts/run-e2e-tests.sh
+++ b/scripts/run-e2e-tests.sh
@@ -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}"
@@ -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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to