From 347cfd06def9e65346320ba81a7af64cf80c8220 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Sun, 31 Mar 2019 14:30:27 +0300 Subject: [PATCH] Upgrade Kubernetes Kind to v0.2.1 --- test/e2e-kind.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/e2e-kind.sh b/test/e2e-kind.sh index 2312aebe6..e617c551f 100755 --- a/test/e2e-kind.sh +++ b/test/e2e-kind.sh @@ -3,21 +3,19 @@ set -o errexit REPO_ROOT=$(git rev-parse --show-toplevel) +KIND_VERSION=0.2.1 echo ">>> Installing kubectl" curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \ chmod +x kubectl && \ sudo mv kubectl /usr/local/bin/ -echo ">>> Building sigs.k8s.io/kind" -docker build -t kind:src . -f ${REPO_ROOT}/test/Dockerfile.kind -docker create -ti --name dummy kind:src sh -docker cp dummy:/go/bin/kind ./kind -docker rm -f dummy - echo ">>> Installing kind" +curl -sSLo kind "https://github.com/kubernetes-sigs/kind/releases/download/$KIND_VERSION/kind-linux-amd64" chmod +x kind -sudo mv kind /usr/local/bin/ +sudo mv kind /usr/local/bin/kind + +echo ">>> Creating kind cluster" kind create cluster --wait 5m export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"