Skip to content

Commit

Permalink
Merge pull request #2 from bitops-plugins/enh/latest-version
Browse files Browse the repository at this point in the history
Install latest Kubectl version
  • Loading branch information
arm4b authored Oct 6, 2022
2 parents 458d9c1 + b17c98e commit d34a696
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ apk info
mkdir -p /opt/download
cd /opt/download

LATEST_RELEASE=$(curl -Ss https://storage.googleapis.com/kubernetes-release/release/stable.txt)
KUBECTL_VERSION=${LATEST_RELEASE}

function install_kubectl() {
wget https://amazon-eks.s3-us-west-2.amazonaws.com/1.13.7/2019-06-11/bin/linux/amd64/kubectl
wget --no-verbose https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl
chmod +x ./kubectl && mv kubectl /usr/local/bin/
}

install_kubectl

# Verify the kubectl installation
kubectl version --client

0 comments on commit d34a696

Please sign in to comment.