mirror of
https://github.com/rancher/rke.git
synced 2025-09-13 13:40:22 +00:00
Merge pull request #3697 from vardhaman22/update-kubectl-url
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -5,7 +5,7 @@ function kubectlinstall {
|
|||||||
k8sversion=$1
|
k8sversion=$1
|
||||||
if [ ! -f "/usr/local/bin/kubectl-${k8sversion}" ]; then
|
if [ ! -f "/usr/local/bin/kubectl-${k8sversion}" ]; then
|
||||||
echo_with_time "Downloading kubectl ${k8sversion}"
|
echo_with_time "Downloading kubectl ${k8sversion}"
|
||||||
curl -sL -o "/usr/local/bin/kubectl-${k8sversion}" "https://storage.googleapis.com/kubernetes-release/release/${k8sversion}/bin/linux/amd64/kubectl"
|
curl -sL -o "/usr/local/bin/kubectl-${k8sversion}" "https://dl.k8s.io/release/${k8sversion}/bin/linux/amd64/kubectl"
|
||||||
chmod +x "/usr/local/bin/kubectl-${k8sversion}"
|
chmod +x "/usr/local/bin/kubectl-${k8sversion}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user