Skip to content

Commit

Permalink
Adding check.
Browse files Browse the repository at this point in the history
  • Loading branch information
algogrit committed Aug 9, 2019
1 parent 89e2885 commit 50e0ad6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code-samples/11-kubernetes/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ mkdir -p ~/.docker
cp docker-config.json ~/.docker/config.json

echo "Fetching kubernetes source..."
mkdir -p ~/.go/src/k8s.io/kubernetes
mkdir -p ~/.go/src/k8s.io
export GOPATH=$HOME/.go
git clone https://github.com/kubernetes/kubernetes.git ~/.go/src/k8s.io/kubernetes
if [ ! -d ~/.go/src/k8s.io/kubernetes ]; then
git clone https://github.com/kubernetes/kubernetes.git ~/.go/src/k8s.io/kubernetes
fi

echo "Creating kind cluster..."
# kind delete cluster
Expand Down

0 comments on commit 50e0ad6

Please sign in to comment.