Skip to content

Commit

Permalink
Update makefile to create kubeconfig (#685)
Browse files Browse the repository at this point in the history
Per kubernetes-sigs/cluster-api#1796, the
`kind get kubeconfig-path` command no longer works.  Update makefile
to create kube-bench local kubeconfig and use that.
  • Loading branch information
Danny Sauer committed Sep 2, 2020
1 parent 33f6773 commit 4e43c9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 4e43c9a

Please sign in to comment.