mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-25 17:38:21 +00:00
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.
This commit is contained in:
parent
33f6773a43
commit
4e43c9a9a2
3
makefile
3
makefile
@ -54,9 +54,10 @@ kind-push:
|
|||||||
kind load docker-image $(IMAGE_NAME) --name $(KIND_PROFILE)
|
kind load docker-image $(IMAGE_NAME) --name $(KIND_PROFILE)
|
||||||
|
|
||||||
# runs the current version on kind using a job and follow logs
|
# 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
|
kind-run: ensure-stern
|
||||||
sed "s/\$${VERSION}/$(VERSION)/" ./hack/kind.yaml > ./hack/kind.test.yaml
|
sed "s/\$${VERSION}/$(VERSION)/" ./hack/kind.yaml > ./hack/kind.test.yaml
|
||||||
|
kind get kubeconfig --name="$(KIND_PROFILE)" > $(KUBECONFIG)
|
||||||
-KUBECONFIG=$(KUBECONFIG) \
|
-KUBECONFIG=$(KUBECONFIG) \
|
||||||
kubectl delete job kube-bench
|
kubectl delete job kube-bench
|
||||||
KUBECONFIG=$(KUBECONFIG) \
|
KUBECONFIG=$(KUBECONFIG) \
|
||||||
|
Loading…
Reference in New Issue
Block a user