Skip to content

Commit

Permalink
add helm install check and fix get VERSION function in install Kurator
Browse files Browse the repository at this point in the history
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
  • Loading branch information
LiZhenCheng9527 committed Feb 23, 2024
1 parent d5dd986 commit 19f2211
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion hack/e2e-test/install-kurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,20 @@ KUBECONFIG_PATH=${KUBECONFIG_PATH:-"${HOME}/.kube"}
MAIN_KUBECONFIG=${MAIN_KUBECONFIG:-"${KUBECONFIG_PATH}/kurator-host.config"}
export KUBECONFIG=${MAIN_KUBECONFIG}
COMMIT_ID=$(git rev-parse --short HEAD)
VERSION=$(echo "$COMMIT_ID" | grep -o '^[0-9]')
VERSION=$(echo "$COMMIT_ID" | sed 's/[^0-9]//g')

sleep 5s

while true; do
if command -v helm >/dev/null 2>&1; then
echo "Helm is installed"
break
else
echo "Helm is not install, waiting..."
fi
sleep 5s
done

helm repo add jetstack https://charts.jetstack.io
helm repo update
kubectl create namespace cert-manager
Expand Down

0 comments on commit 19f2211

Please sign in to comment.