From 5eaee93d3e0e4b2b36cc2a5b27e255b2928a7a3f Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 19 Jul 2024 11:58:47 +0100 Subject: [PATCH] Dont use prerelease when upgrading talos Signed-off-by: Marcus Noble --- home/.bin/talos-upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.bin/talos-upgrade b/home/.bin/talos-upgrade index 1c98a59..b0f2fed 100755 --- a/home/.bin/talos-upgrade +++ b/home/.bin/talos-upgrade @@ -9,7 +9,7 @@ if [[ "${TALOSCONFIG}" == "" ]]; then exit 1 fi -LATEST_RELEASE=$(curl --silent https://api.github.com/repos/siderolabs/talos/releases | jq -r '.[0]') +LATEST_RELEASE=$(curl --silent https://api.github.com/repos/siderolabs/talos/releases | jq -r '[.[] | select(.prerelease == false)] | .[0]') TALOS_VERSION="$(jq --argjson LATEST_RELEASE "$LATEST_RELEASE" -c -n -r '$LATEST_RELEASE.tag_name')" KUBERNETES_VERSION="$(jq --argjson LATEST_RELEASE "$LATEST_RELEASE" -c -n -r '$LATEST_RELEASE.body | match("registry.k8s.io/kube-apiserver:v([0-9\\.]+)") | .captures[0].string')"