Skip to content

Commit

Permalink
fix(ci): delete deployment before other resources
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Jul 1, 2024
1 parent 233b936 commit 0eaf63b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -832,9 +832,11 @@ install-openshift-ns: install-operator install-clean-kustomize

uninstall:
ifdef NAMESPACE
kubectl delete deploy,configmap,secret,sa,rolebindings,clusterrolebindings,roles,clusterroles,integrationplatform -l app=camel-k -n $(NAMESPACE)
kubectl delete deploy -l app=camel-k -n $(NAMESPACE)
kubectl delete configmap,secret,sa,rolebindings,clusterrolebindings,roles,clusterroles,integrationplatform -l app=camel-k -n $(NAMESPACE)
else
kubectl delete deploy,configmap,secret,sa,rolebindings,clusterrolebindings,roles,clusterroles,integrationplatform -l app=camel-k
kubectl delete deploy -l app=camel-k
kubectl delete configmap,secret,sa,rolebindings,clusterrolebindings,roles,clusterroles,integrationplatform -l app=camel-k
endif

uninstall-crds:
Expand Down

0 comments on commit 0eaf63b

Please sign in to comment.