Skip to content

Commit 4994f78

Browse files
committed
e2e: cleanup aks mgmt cluster
1 parent 2b9c821 commit 4994f78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

e2e.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ test-e2e-run: generate-e2e-templates install-tools create-bootstrap ## Run e2e t
2020
-e2e.skip-resource-cleanup=$(SKIP_CLEANUP) -e2e.use-existing-cluster=$(SKIP_CREATE_MGMT_CLUSTER) $(E2E_ARGS) \
2121
$(MAKE) cleanup-workload-identity
2222
$(MAKE) clean-release-git
23+
if [ "$(MGMT_CLUSTER_TYPE)" == "aks" ] && [ "$(SKIP_CLEANUP)" != "true" ]; then \
24+
echo "Cleaning up AKS management cluster..."; \
25+
$(MAKE) aks-delete; \
26+
fi
2327

2428
.PHONY: test-e2e
2529
test-e2e: ## Run "docker-build" and "docker-push" rules then run e2e tests.

0 commit comments

Comments
 (0)