diff --git a/hack/e2e-test/install-kurator.sh b/hack/e2e-test/install-kurator.sh index fbc8ebcb..c5711cb2 100755 --- a/hack/e2e-test/install-kurator.sh +++ b/hack/e2e-test/install-kurator.sh @@ -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