Use newer `kind load docker-image` command (#459)

Updates the logic for `kind-push` in the makefile to use
the new, simple command provided by kind.

Fixes #458
pull/413/head^2
John Schnake 5 years ago committed by Simarpreet Singh
parent b009520ea3
commit 2657c2f96f

@ -48,10 +48,7 @@ endif
# pushses the current dev version to the kind cluster.
kind-push:
docker save $(IMAGE_NAME) -o kube-bench.tar.gz; \
docker cp kube-bench.tar.gz $(KIND_CONTAINER_NAME):/kube-bench.tar.gz; \
docker exec $(KIND_CONTAINER_NAME) docker load -i /kube-bench.tar.gz;
-rm -f kube-bench.tar.gz
kind load docker-image $(IMAGE_NAME) --name $(KIND_PROFILE)
# runs the current version on kind using a job and follow logs
kind-run: KUBECONFIG = "$(shell kind get kubeconfig-path --name="$(KIND_PROFILE)")"

Loading…
Cancel
Save