tests,scripts: Simplify bootkube and kubectl binary curling

This commit is contained in:
Dalton Hubble
2017-03-08 13:43:51 -08:00
parent b03f62814d
commit 3946d9ee66
3 changed files with 9 additions and 7 deletions

View File

@@ -12,5 +12,5 @@ if [[ ! -f $DEST/bootkube ]]; then
mkdir -p $DEST
curl -L -O ${URL}
tar -C $DEST --strip-components=2 -xzf bootkube.tar.gz bin/linux/bootkube
chmod +x ${DEST}
chmod +x ${DEST}/bootkube
fi

View File

@@ -1,14 +1,15 @@
#!/usr/bin/env bash
# USAGE: ./get-kubectl bin/kubectl
# USAGE: ./get-kubectl bin
# Get the kubectl client
set -eu
DEST=${1:-"bin/kubectl"}
DEST=${1:-"bin"}
VERSION="v1.5.2"
URL="https://storage.googleapis.com/kubernetes-release/release/${VERSION}/bin/linux/amd64/kubectl"
mkdir -p $(dirname $DEST)
curl -L -o ${DEST} ${URL}
chmod +x ${DEST}
if [[ ! -f $DEST/kubectl ]]; then
mkdir -p ${DEST}
curl -L -o ${DEST}/kubectl ${URL}
chmod +x ${DEST}/kubectl
fi

View File

@@ -8,6 +8,7 @@ main() {
rm -rf assets
cleanup
./scripts/get-kubectl
./scripts/get-bootkube
./scripts/devnet create bootkube
./scripts/libvirt create