mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
tests,scripts: Simplify bootkube and kubectl binary curling
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -8,6 +8,7 @@ main() {
|
||||
rm -rf assets
|
||||
cleanup
|
||||
|
||||
./scripts/get-kubectl
|
||||
./scripts/get-bootkube
|
||||
./scripts/devnet create bootkube
|
||||
./scripts/libvirt create
|
||||
|
||||
Reference in New Issue
Block a user