mirror of
https://github.com/helm/helm.git
synced 2026-06-24 08:48:06 +00:00
fix v2 install script, hardcode to v2.17.0
Signed-off-by: Cameron Motevasselani <cameron@armory.io>
This commit is contained in:
10
scripts/get
10
scripts/get
@@ -76,14 +76,8 @@ verifySupported() {
|
||||
# checkDesiredVersion checks if the desired version is available.
|
||||
checkDesiredVersion() {
|
||||
if [ "x$DESIRED_VERSION" == "x" ]; then
|
||||
# Get tag from release URL
|
||||
local release_url="https://github.com/helm/helm/releases"
|
||||
if type "curl" > /dev/null; then
|
||||
|
||||
TAG=$(curl -Ls $release_url | grep 'href="/helm/helm/releases/tag/v2.[0-9]*.[0-9]*\"' | grep -v no-underline | head -n 1 | cut -d '"' -f 2 | awk '{n=split($NF,a,"/");print a[n]}' | awk 'a !~ $0{print}; {a=$0}')
|
||||
elif type "wget" > /dev/null; then
|
||||
TAG=$(wget $release_url -O - 2>&1 | grep 'href="/helm/helm/releases/tag/v2.[0-9]*.[0-9]*\"' | grep -v no-underline | head -n 1 | cut -d '"' -f 2 | awk '{n=split($NF,a,"/");print a[n]}' | awk 'a !~ $0{print}; {a=$0}')
|
||||
fi
|
||||
# Pinning tag to v2.17.0 as per https://github.com/helm/helm/issues/9607
|
||||
TAG=v2.17.0
|
||||
else
|
||||
TAG=$DESIRED_VERSION
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user