From 12516718adede0da15d8c98c4930929fda1c9da2 Mon Sep 17 00:00:00 2001 From: lizhencheng <140870529+LiZhenCheng9527@users.noreply.github.com> Date: Tue, 27 Feb 2024 10:17:15 +0800 Subject: [PATCH] Fix get VERSION command in install Kurator (#610) * fix get VERSION function in install Kurator Signed-off-by: LiZhenCheng9527 * Remove pilot zero of VERSION. Signed-off-by: LiZhenCheng9527 --------- Signed-off-by: LiZhenCheng9527 --- hack/e2e-test/install-kurator.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/e2e-test/install-kurator.sh b/hack/e2e-test/install-kurator.sh index 709dd3db..7fe12cff 100755 --- a/hack/e2e-test/install-kurator.sh +++ b/hack/e2e-test/install-kurator.sh @@ -10,9 +10,9 @@ 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 10s +VERSION=$(echo "$COMMIT_ID" | sed 's/[^0-9]//g') +# Remove pilot zero of VERSION. +VERSION=$(echo "$VERSION" | sed 's/^0*//') helm repo add jetstack https://charts.jetstack.io helm repo update