Debug pull error
* Debug pull error
* Pull the k8s node image as separate command
This helps debugging kind errors on TravisCI
@@ -22,6 +22,7 @@ GSC_BUILD_PATH ?= gs://$(RELEASE_BUCKET)/builds/$(COMMIT)
GSC_BUILD_LATEST ?= gs://$(RELEASE_BUCKET)/builds/latest
GSC_RELEASE_PATH ?= gs://$(RELEASE_BUCKET)/releases/$(VERSION)
GSC_RELEASE_LATEST ?= gs://$(RELEASE_BUCKET)/releases/latest
+KIND_NODE ?= kindest/node:v1.13.12@sha256:214476f1514e47fe3f6f54d0f9e24cfb1e4cda449529791286c7161b7f9c08e7
GCP_ONLY ?= false
GCP_PROJECT ?= k8s-skaffold
@@ -185,7 +186,8 @@ skaffold-builder:
.PHONY: integration-in-kind
integration-in-kind: skaffold-builder
echo '{}' > /tmp/docker-config
- docker network inspect kind >/dev/null || docker network create kind
+ docker pull $(KIND_NODE)
+ docker network inspect kind >/dev/null 2>&1 || docker network create kind
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(HOME)/.gradle:/root/.gradle \
@@ -198,7 +200,7 @@ integration-in-kind: skaffold-builder
--network kind \
gcr.io/$(GCP_PROJECT)/skaffold-builder \
sh -eu -c ' \
- kind get clusters | grep -q kind || TERM=dumb kind create cluster --image=kindest/node:v1.13.12@sha256:214476f1514e47fe3f6f54d0f9e24cfb1e4cda449529791286c7161b7f9c08e7; \
+ kind get clusters | grep -q kind || TERM=dumb kind create cluster --image=$(KIND_NODE); \
kind get kubeconfig --internal > /tmp/kind-config; \
make integration \
'
