diff --git a/Makefile b/Makefile index b4767a0..8735c20 100644 --- a/Makefile +++ b/Makefile @@ -180,7 +180,7 @@ csi-install: .PHONY: clean clean: kind-clean ## Clean up local dev environment - rm $(vcluster_bin) + rm -f $(vcluster_bin) metallb-setup: $(metallb_sentinel) ## Install metallb as loadbalancer diff --git a/kind/kind.mk b/kind/kind.mk index f1800a0..fff12a2 100644 --- a/kind/kind.mk +++ b/kind/kind.mk @@ -36,6 +36,7 @@ kind-load-image: kind-setup build-docker ## Load the container image onto kind c .PHONY: kind-clean kind-clean: export KUBECONFIG = $(KIND_KUBECONFIG) +kind-clean: $(kind_bin) kind-clean: ## Removes the kind Cluster @$(kind_bin) delete cluster --name $(KIND_CLUSTER) || true rm -rf $(kind_dir) $(kind_bin) @@ -46,7 +47,7 @@ $(KIND_KUBECONFIG): $(kind_bin) --name $(KIND_CLUSTER) \ --image $(KIND_IMAGE) \ --config kind/config.yaml - ln -s $(KIND_KUBECONFIG) $(kind_dir)/kind-config + cp $(KIND_KUBECONFIG) $(kind_dir)/kind-config @kubectl version @kubectl cluster-info @kubectl config use-context kind-$(KIND_CLUSTER)