Files
matchbox/scripts/get-kubectl
Dalton Hubble 9a1d87b143 internal: Add internal smoke test scripts
* Test etcd and k8s cluster bring-up
2017-03-01 13:38:32 -08:00

15 lines
302 B
Bash
Executable File

#!/usr/bin/env bash
# USAGE: ./get-kubectl bin/kubectl
# Get the kubectl client
set -eu
DEST=${1:-"bin/kubectl"}
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}