From ea53172b430433f6fe6dd7a58144eb6b20c57707 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Mon, 26 Feb 2024 13:01:36 +0000 Subject: [PATCH] Refactor HelmChart/Tests/index.sh script --- HelmChart/Tests/index.sh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/HelmChart/Tests/index.sh b/HelmChart/Tests/index.sh index cbb812b8d2..2f0c4d498d 100644 --- a/HelmChart/Tests/index.sh +++ b/HelmChart/Tests/index.sh @@ -21,24 +21,24 @@ sudo microk8s kubectl get pods sudo microk8s helm install oneuptime ../../HelmChart/Public/oneuptime -f ../../HelmChart/Public/oneuptime/values.yaml -f ./ci-values.yaml -echo "OneUptime is installed. Waiting for it to be ready. Checking status in 20 mins once things settle down..." -sleep 20m +# echo "OneUptime is installed. Waiting for it to be ready. Checking status in 20 mins once things settle down..." +# sleep 20m -# Wait for OneUptime to be ready -timeout 30m bash -c ' - endtime=$((SECONDS+600)) - while [ $SECONDS -lt $endtime ]; do - if sudo microk8s kubectl wait pod --all --for=condition=Ready --namespace=default --timeout=5m; then - echo "All pods are ready" - exit 0 - fi - echo "Some pods are not ready yet. Getting status of all the pods: " - sudo microk8s kubectl get pods --all-namespaces - sleep 1m - done - echo "Timeout reached. Some pods failed to start" - exit 1 -' +# # Wait for OneUptime to be ready +# timeout 30m bash -c ' +# endtime=$((SECONDS+600)) +# while [ $SECONDS -lt $endtime ]; do +# if sudo microk8s kubectl wait pod --all --for=condition=Ready --namespace=default --timeout=5m; then +# echo "All pods are ready" +# exit 0 +# fi +# echo "Some pods are not ready yet. Getting status of all the pods: " +# sudo microk8s kubectl get pods --all-namespaces +# sleep 1m +# done +# echo "Timeout reached. Some pods failed to start" +# exit 1 +# ' # Once it's ready. Run helm test. # sudo microk8s helm test oneuptime