mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-22 08:08:07 +00:00
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
This commit is contained in:
parent
b009520ea3
commit
2657c2f96f
5
makefile
5
makefile
@ -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…
Reference in New Issue
Block a user