Skip to content

Commit

Permalink
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 26, 2024
1 parent 9866f70 commit a4dea0e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hack/e2e-test/install-kurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ 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')

helm repo add jetstack https://charts.jetstack.io
helm repo update
Expand Down

0 comments on commit a4dea0e

Please sign in to comment.