Skip to content

Commit

Permalink
Upgrade Kubernetes Kind to v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Mar 31, 2019
1 parent ec759ce commit 347cfd0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")"
Expand Down

0 comments on commit 347cfd0

Please sign in to comment.