Update to latest kind version (#954)

This commit is contained in:
Aleksandr Chebotov
2020-05-28 19:30:28 +03:00
committed by GitHub
parent 8290bdeb6e
commit 9b76f6f84b
2 changed files with 16 additions and 17 deletions

View File

@@ -6,12 +6,10 @@
# Source the helpers for use with the script
source $HELPER_SCRIPTS/document.sh
source $HELPER_SCRIPTS/apt.sh
# Install KIND
KIND_VERSION="v0.7.0"
curl -L -o /usr/local/bin/kind "https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64"
URL=$(curl -s https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | jq -r '.assets[].browser_download_url | select(contains("kind-linux-amd64"))')
curl -L -o /usr/local/bin/kind $URL
chmod +x /usr/local/bin/kind
# Run tests to determine that the software installed as expected