Merge pull request #458 from coreos/download-bins

scripts: Always download bootkube and kubectl
This commit is contained in:
Dalton Hubble
2017-03-10 18:04:14 -08:00
committed by GitHub
2 changed files with 7 additions and 11 deletions

View File

@@ -8,9 +8,7 @@ VERSION="v0.3.11"
URL="https://github.com/kubernetes-incubator/bootkube/releases/download/${VERSION}/bootkube.tar.gz"
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}/bootkube
fi
mkdir -p $DEST
curl -L -O ${URL}
tar -C $DEST --strip-components=2 -xzf bootkube.tar.gz bin/linux/bootkube
chmod +x ${DEST}/bootkube

View File

@@ -8,8 +8,6 @@ VERSION="v1.5.2"
URL="https://storage.googleapis.com/kubernetes-release/release/${VERSION}/bin/linux/amd64/kubectl"
if [[ ! -f $DEST/kubectl ]]; then
mkdir -p ${DEST}
curl -L -o ${DEST}/kubectl ${URL}
chmod +x ${DEST}/kubectl
fi
mkdir -p ${DEST}
curl -L -o ${DEST}/kubectl ${URL}
chmod +x ${DEST}/kubectl