Skip to content

Commit 37cc395

Browse files
committed
Remove local registry along with Kind cluster
Signed-off-by: Johanan Liebermann <[email protected]>
1 parent 73c6ea9 commit 37cc395

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ TEST_EXTENSION_IMG ?= $(REGISTRY)/$(TEST_EXTENSION_IMAGE_NAME)
236236

237237
# kind
238238
CAPI_KIND_CLUSTER_NAME ?= capi-test
239+
CAPI_KIND_REGISTRY_NAME ?= kind-registry
239240

240241
# It is set by Prow GIT_TAG, a git-based tag of the form vYYYYMMDD-hash, e.g., v20210120-v0.3.10-308-gc61521971
241242

@@ -1339,8 +1340,9 @@ clean: ## Remove generated binaries, GitBook files, Helm charts, and Tilt build
13391340
$(MAKE) clean-tilt
13401341

13411342
.PHONY: clean-kind
1342-
clean-kind: ## Cleans up the kind cluster with the name $CAPI_KIND_CLUSTER_NAME
1343+
clean-kind: ## Cleans up the kind cluster with the name $CAPI_KIND_CLUSTER_NAME and its local registry named $CAPI_KIND_REGISTRY_NAME
13431344
kind delete cluster --name="$(CAPI_KIND_CLUSTER_NAME)" || true
1345+
docker rm -f "$(CAPI_KIND_REGISTRY_NAME)"
13441346

13451347
.PHONY: clean-bin
13461348
clean-bin: ## Remove all generated binaries

0 commit comments

Comments
 (0)