From c498665bdd3777ededb07fa099ff30d0ba4292a8 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Fri, 10 Mar 2017 17:27:52 -0800 Subject: [PATCH] scripts: Always download bootkube and kubectl * Cached bootkube binary causes smoke test failures when a new version is needed --- scripts/get-bootkube | 10 ++++------ scripts/get-kubectl | 8 +++----- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/scripts/get-bootkube b/scripts/get-bootkube index c6e5aee0..383f532b 100755 --- a/scripts/get-bootkube +++ b/scripts/get-bootkube @@ -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 diff --git a/scripts/get-kubectl b/scripts/get-kubectl index 7b20bd3b..3cc4059b 100755 --- a/scripts/get-kubectl +++ b/scripts/get-kubectl @@ -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