diff --git a/script/Makefile b/script/Makefile index 11b317fc9d..a1c8abc065 100644 --- a/script/Makefile +++ b/script/Makefile @@ -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: