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 cd577ce
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions hack/e2e-test/install-kurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ 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]')

sleep 5s
VERSION=$(echo "$COMMIT_ID" | sed 's/[^0-9]//g')

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
Expand Down

0 comments on commit cd577ce

Please sign in to comment.