Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
Instead of blanket || true let's use --ignore-not-found

Co-authored-by: Jimmi Dyson <jimmi.dyson@nutanix.com>
  • Loading branch information
deepakm-ntnx and jimmidyson authored Dec 12, 2023
1 parent a0dab43 commit c19b567
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -401,14 +401,14 @@ test-clusterclass-create: cluster-templates

.PHONY: test-clusterclass-delete
test-clusterclass-delete:
kubectl -n $(TEST_NAMESPACE) delete cluster ccls-test1 || true
kubectl -n $(TEST_NAMESPACE) delete nutanixcluster ccls-test1 || true
kubectl -n $(TEST_NAMESPACE) delete clusterclass my-test-cluster-template || true
kubectl -n $(TEST_NAMESPACE) delete nutanixmachinetemplate my-test-cluster-template-cp-nmt || true
kubectl -n $(TEST_NAMESPACE) delete nutanixmachinetemplate my-test-cluster-template-md-nmt || true
kubectl -n $(TEST_NAMESPACE) delete KubeadmConfigTemplate my-test-cluster-template-md-kcfgt || true
kubectl -n $(TEST_NAMESPACE) delete kubeadmcontrolplanetemplate my-test-cluster-template-kcpt || true
kubectl -n $(TEST_NAMESPACE) delete NutanixClustertemplate my-test-cluster-template-nct || true
kubectl -n $(TEST_NAMESPACE) delete cluster ccls-test1 --ignore-not-found
kubectl -n $(TEST_NAMESPACE) delete nutanixcluster ccls-test1 --ignore-not-found
kubectl -n $(TEST_NAMESPACE) delete clusterclass my-test-cluster-template --ignore-not-found
kubectl -n $(TEST_NAMESPACE) delete nutanixmachinetemplate my-test-cluster-template-cp-nmt --ignore-not-found
kubectl -n $(TEST_NAMESPACE) delete nutanixmachinetemplate my-test-cluster-template-md-nmt --ignore-not-found
kubectl -n $(TEST_NAMESPACE) delete KubeadmConfigTemplate my-test-cluster-template-md-kcfgt --ignore-not-found
kubectl -n $(TEST_NAMESPACE) delete kubeadmcontrolplanetemplate my-test-cluster-template-kcpt --ignore-not-found
kubectl -n $(TEST_NAMESPACE) delete NutanixClustertemplate my-test-cluster-template-nct --ignore-not-found
# kubectl -n $(TEST_NAMESPACE) delete secret ccls-test1
kubectl -n $(TEST_NAMESPACE) delete cm user-ca-bundle
rm ccls-test1.yaml || true
Expand Down

0 comments on commit c19b567

Please sign in to comment.