Skip to content

Commit

Permalink
Fix get VERSION command in install Kurator (kurator-dev#610)
Browse files Browse the repository at this point in the history
* fix get VERSION function in install Kurator

Signed-off-by: LiZhenCheng9527 <[email protected]>

* Remove pilot zero of VERSION.

Signed-off-by: LiZhenCheng9527 <[email protected]>

---------

Signed-off-by: LiZhenCheng9527 <[email protected]>
  • Loading branch information
LiZhenCheng9527 authored Feb 27, 2024
1 parent 9866f70 commit 1251671
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/e2e-test/install-kurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1251671

Please sign in to comment.