From 4e43c9a9a2e01d72cab2d5266f9dc71499398714 Mon Sep 17 00:00:00 2001 From: Danny Sauer Date: Wed, 2 Sep 2020 09:28:30 -0500 Subject: [PATCH] Update makefile to create kubeconfig (#685) Per https://github.com/kubernetes-sigs/cluster-api/issues/1796, the `kind get kubeconfig-path` command no longer works. Update makefile to create kube-bench local kubeconfig and use that. --- makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index e343a27..290f527 100644 --- a/makefile +++ b/makefile @@ -54,9 +54,10 @@ kind-push: 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)")" +kind-run: KUBECONFIG = "./kubeconfig.kube-bench" kind-run: ensure-stern sed "s/\$${VERSION}/$(VERSION)/" ./hack/kind.yaml > ./hack/kind.test.yaml + kind get kubeconfig --name="$(KIND_PROFILE)" > $(KUBECONFIG) -KUBECONFIG=$(KUBECONFIG) \ kubectl delete job kube-bench KUBECONFIG=$(KUBECONFIG) \