Skip to content

Commit 69cab7f

Browse files
guilhemeljohnson92
authored andcommitted
fix: manage semver without "v"
if a user put "1.34.2" instead of "v1.34.2", script fail downloading kubeadm and kubelet Signed-off-by: Guilhem Lettron <[email protected]>
1 parent 36ad76b commit 69cab7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pre-kubeadminit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ curl -L "https://github.com/kubernetes-sigs/cri-tools/releases/download/v${VERSI
182182

183183
# install kubeadm,kubelet,kubectl
184184
cd /usr/local/bin
185-
curl -L --remote-name-all "https://dl.k8s.io/release/$1/bin/linux/amd64/{kubeadm,kubelet}"
185+
curl -L --remote-name-all "https://dl.k8s.io/release/v${PATCH_VERSION}/bin/linux/amd64/{kubeadm,kubelet}"
186186
curl -LO "https://dl.k8s.io/release/v${VERSION}.0/bin/linux/amd64/kubectl"
187187
chmod +x {kubeadm,kubelet,kubectl}
188188

0 commit comments

Comments
 (0)