Fixed kubectl download on Linux ARM64 VMs

This commit is contained in:
richardrobertreitz 2025-03-07 20:28:39 +00:00
parent f81a550064
commit 1ab8119063

View file

@ -285,7 +285,11 @@ spec:
fi
set -e
curl -sS -LO "https://dl.k8s.io/release/v1.28.3//bin/linux/amd64/kubectl"
if [[ "$(uname -m)" == "x86_64" ]]; then
curl -sS -LO "https://dl.k8s.io/release/v1.28.3//bin/linux/amd64/kubectl"
else
curl -sS -LO "https://dl.k8s.io/release/v1.28.3//bin/linux/arm64/kubectl"
fi
chmod +x kubectl
echo "creating cnoe realm and groups"