fix(prepare-labs): change cdn.dl.k8s.io to dl.k8s.io

This commit is contained in:
Hadrien DEVALLEZ
2026-02-16 13:00:04 +01:00
committed by Jérôme Petazzoni
parent 8a331246f9
commit 3e14209060

View File

@@ -479,7 +479,7 @@ _cmd_kubebins() {
need_tag
if [ "$KUBEVERSION" = "" ]; then
KUBEVERSION="$(curl -fsSL https://cdn.dl.k8s.io/release/stable.txt | sed s/^v//)"
KUBEVERSION="$(curl -fsSL https://dl.k8s.io/release/stable.txt | sed s/^v//)"
fi
##VERSION##
@@ -531,7 +531,7 @@ _cmd_kubepkgs() {
# minor version, so we need to figure out what minor version we are
# installing to add the corresponding repo.
if [ "$KUBEVERSION" = "" ]; then
KUBEVERSION="$(curl -fsSL https://cdn.dl.k8s.io/release/stable.txt | sed s/^v//)"
KUBEVERSION="$(curl -fsSL https://dl.k8s.io/release/stable.txt | sed s/^v//)"
fi
KUBEREPOVERSION="$(echo $KUBEVERSION | cut -d. -f1-2)"