Skip to content

Commit

Permalink
Update dev/setup-rancher-clusters
Browse files Browse the repository at this point in the history
Co-authored-by: Alejandro Ruiz <[email protected]>
  • Loading branch information
manno and aruiz14 committed Sep 20, 2024
1 parent cbb647f commit 15a2dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/setup-rancher-clusters
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rancherpassword="${RANCHER_PASSWORD-rancherpassword}"
version="${1-}"
channel="${2-latest}" # latest or alpha
if [ -z "$version" ]; then
version=$(curl "https://releases.rancher.com/server-charts/$channel/index.yaml" | yq -r '.entries | to_entries | .[].value[] | .version' latest.yaml | sort -V | tail -1)
version=$(curl -SsLf "https://releases.rancher.com/server-charts/$channel/index.yaml" | yq -r '.entries | to_entries | .[].value[] | .version' | sort -V | tail -1)
fi

kubectl config use-context "$upstream_ctx"
Expand Down

0 comments on commit 15a2dfa

Please sign in to comment.