[CI/CD] Update kubectl installation in check_install_docker.sh script

This commit updates the check_install_docker.sh script used in the Jenkins installers. It modifies the installation command for kubectl to use the updated URL: https://dl.k8s.io/release/$(curl -sL https://dl.k8s.io/release/stable.txt)/bin/linux/${ARCH}/kubectl. This ensures that the latest version of kubectl is downloaded and installed during the Jenkins installation process.

The previous URL https://storage.googleapis.com/kubernetes-release/release/stable.txt is being moved.

Signed-off-by: Ricky Sadowski <richard.j.sadowski@gmail.com>
pull/16487/head
Ricky Sadowski 2023-05-11 15:05:12 +00:00
parent a017d16035
commit cd9b22dff5
1 changed files with 1 additions and 1 deletions

View File

@ -30,5 +30,5 @@ rm get-docker.sh
sudo adduser jenkins docker || true
echo "Installing latest kubectl"
curl -LO "https://dl.k8s.io/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/${ARCH}/kubectl"
curl -LO "https://dl.k8s.io/release/$(curl -sL https://dl.k8s.io/release/stable.txt)/bin/linux/${ARCH}/kubectl"
sudo install ./kubectl /usr/local/bin/kubectl