Skip to content

Commit

Permalink
fixed make help for cleanup section
Browse files Browse the repository at this point in the history
  • Loading branch information
Iaroslav Ivchenkov committed Dec 30, 2024
1 parent caf14e7 commit ed6e7e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -427,15 +427,15 @@ certs/platform-engineer1/platform-engineer1.csr: certs/platform-engineer1/platfo
certs/platform-engineer1/platform-engineer1.crt: certs/platform-engineer1/platform-engineer1.csr certs/ca/ca.crt certs/ca/ca.key
openssl x509 -req -in certs/platform-engineer1/platform-engineer1.csr -CA certs/ca/ca.crt -CAkey certs/ca/ca.key -CAcreateserial -out certs/platform-engineer1/platform-engineer1.crt -days 360

##@ Tear down managed cluster
##@ Cleanup

.PHONY: cleanup-clusters
cleanup-clusters: clean-certs
cleanup-clusters: clean-certs ## Tear down managed cluster
# use the explicit --context option to be specific about which cluster should be used to prevent disaster
kubectl --context=kind-$(KIND_CLUSTER_NAME) delete managedclusters.hmc.mirantis.com -n $(HMC_NAMESPACE) --all

##@ Tear down management cluster
.PHONY: cleanup
cleanup: cleanup-clusters clean-certs
cleanup: cleanup-clusters clean-certs ## Tear down management cluster
@if $(KIND) get clusters | grep -q $(KIND_CLUSTER_NAME); then\
$(KIND) kind delete cluster --name=$(KIND_CLUSTER_NAME);\
else\
Expand Down

0 comments on commit ed6e7e8

Please sign in to comment.