Files
matchbox/scripts/get-bootkube
Dalton Hubble c498665bdd scripts: Always download bootkube and kubectl
* Cached bootkube binary causes smoke test failures
when a new version is needed
2017-03-10 17:27:52 -08:00

15 lines
351 B
Bash
Executable File

#!/usr/bin/env bash
# USAGE: ./get-bootkube bin
# Get the bootkube tool
set -eu
DEST=${1:-"bin"}
VERSION="v0.3.11"
URL="https://github.com/kubernetes-incubator/bootkube/releases/download/${VERSION}/bootkube.tar.gz"
mkdir -p $DEST
curl -L -O ${URL}
tar -C $DEST --strip-components=2 -xzf bootkube.tar.gz bin/linux/bootkube
chmod +x ${DEST}/bootkube