mirror of https://github.com/knative/client.git
Fix fetching of Istion latest release (#1509)
This commit is contained in:
parent
87ea0f83a1
commit
4fb6bdb95a
|
|
@ -34,11 +34,8 @@ function install_istio() {
|
||||||
readonly ISTIO_VERSION="stable"
|
readonly ISTIO_VERSION="stable"
|
||||||
fi
|
fi
|
||||||
header "Installing Istio ${ISTIO_VERSION}"
|
header "Installing Istio ${ISTIO_VERSION}"
|
||||||
# TODO: fix after 1.0 release
|
local LATEST_NET_ISTIO_RELEASE_VERSION=$(curl -L --silent "https://api.github.com/repos/knative/net-istio/releases" | \
|
||||||
# LATEST_NET_ISTIO_RELEASE_VERSION=$(
|
jq -r '[.[].tag_name] | sort_by( sub("knative-";"") | sub("v";"") | split(".") | map(tonumber) ) | reverse[0]')
|
||||||
# curl -L --silent "https://api.github.com/repos/knative/net-istio/releases" | grep '"tag_name"' \
|
|
||||||
# | cut -d '-' -f2 | cut -f2 -d: | sed "s/[^v0-9.]//g" | sort | tail -n1)
|
|
||||||
LATEST_NET_ISTIO_RELEASE_VERSION="knative-v1.0.0"
|
|
||||||
# And checkout the setup script based on that release
|
# And checkout the setup script based on that release
|
||||||
local NET_ISTIO_DIR=$(mktemp -d)
|
local NET_ISTIO_DIR=$(mktemp -d)
|
||||||
(
|
(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue