Skip to content

Commit cbfefd5

Browse files
authored
fix the make kind-delete-custer to avoid accidental kubeconfig deletion (kubeflow#2172)
Signed-off-by: ImpSy <3097030+ImpSy@users.noreply.github.com>
1 parent 75b9266 commit cbfefd5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ kind-load-image: kind-create-cluster docker-build ## Load the image into the kin
255255

256256
.PHONY: kind-delete-custer
257257
kind-delete-custer: kind ## Delete the created kind cluster.
258-
$(KIND) delete cluster --name $(KIND_CLUSTER_NAME) && \
259-
rm -f $(KIND_KUBE_CONFIG)
258+
$(KIND) delete cluster --name $(KIND_CLUSTER_NAME) --kubeconfig $(KIND_KUBE_CONFIG)
260259

261260
.PHONY: install
262261
install-crd: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.

0 commit comments

Comments
 (0)