This commit is contained in:
@@ -57,7 +57,12 @@ jobs:
|
||||
aarch64) KUBECTL_ARCH="arm64" ;;
|
||||
armv7l) KUBECTL_ARCH="arm" ;;
|
||||
esac
|
||||
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/${KUBECTL_ARCH}/kubectl"
|
||||
|
||||
VERSION=$(curl --http1.1 -Ls https://dl.k8s.io/release/stable.txt)
|
||||
|
||||
curl --http1.1 -LO \
|
||||
"https://dl.k8s.io/release/${VERSION}/bin/linux/${KUBECTL_ARCH}/kubectl"
|
||||
|
||||
chmod +x kubectl
|
||||
sudo mv kubectl /usr/local/bin/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user