Browse Source

installation: allow *_VERSION passing without v

Allow users passing *_VERSION without `v` like `0.4.1`

Signed-off-by: llhuii <liulinghui@huawei.com>
tags/v0.5.0
llhuii 4 years ago
parent
commit
18020ea042
2 changed files with 6 additions and 1 deletions
  1. +5
    -1
      scripts/installation/all-in-one.sh
  2. +1
    -0
      scripts/installation/install.sh

+ 5
- 1
scripts/installation/all-in-one.sh View File

@@ -58,10 +58,14 @@ function prepare_env() {
if [ -z "${KUBEEDGE_VERSION:-}" ]; then
KUBEEDGE_VERSION=$(get_latest_version kubeedge/kubeedge $DEFAULT_KUBEEDGE_VERSION)
fi
# 1.8.0 => v1.8.0
# v1.8.0 => v1.8.0
KUBEEDGE_VERSION=v${KUBEEDGE_VERSION#v}

if [ -z "${SEDNA_VERSION:-}" ]; then
SEDNA_VERSION=$(get_latest_version kubeedge/sedna $DEFAULT_SEDNA_VERSION)
fi
SEDNA_VERSION=v${SEDNA_VERSION#v}

: ${NUM_CLOUD_WORKER_NODES:=0}
: ${NUM_EDGE_NODES:=1}
@@ -419,7 +423,7 @@ function install_sedna() {
log_info "Installing Sedna Control Components..."

run_in_control_plane bash -ec "
curl https://raw.githubusercontent.com/kubeedge/sedna/main/scripts/installation/install.sh | SEDNA_ACTION=create bash -
curl https://raw.githubusercontent.com/kubeedge/sedna/main/scripts/installation/install.sh | SEDNA_ACTION=create SEDNA_VERSION=$SEDNA_VERSION bash -
"
}



+ 1
- 0
scripts/installation/install.sh View File

@@ -48,6 +48,7 @@ get_latest_version() {
}

: ${SEDNA_VERSION:=$(get_latest_version)}
SEDNA_VERSION=v${SEDNA_VERSION#v}

_download_yamls() {



Loading…
Cancel
Save