datawire / forge

Define and run multi-container apps in Kubernetes
http://forge.sh
Apache License 2.0
416 stars 43 forks source link

forge delete gives an error with namespaces #149

Closed richarddli closed 6 years ago

richarddli commented 6 years ago

I've deployed a service python-api with the default profile to the datawire namespace.

I then run forge delete python-api default. I get:

║ kubectl get ns -oname
║ namespaces/datawire
║ namespaces/default
║ namespaces/kube-public
║ namespaces/kube-system
║ kubectl delete -n datawire csr,clusterrolebindings,clusterroles,cm,controllerrevisions,crd,ds,deploy,ep,ev,hpa,ing,jobs,limits,ns,netpol,no,pvc,pv,pdb,po,psp,podtemplates,rs,rc,quota,rolebindings,roles,secrets,sa,svc,sts,sc -lforge.profile=default,forge.service=python-api
║ deployment "python-api-dev-test" deleted
║ endpoints "python-api-dev-test" deleted
║ namespace "datawire" deleted
║ service "python-api-dev-test" deleted
║ kubectl delete -n default csr,clusterrolebindings,clusterroles,cm,controllerrevisions,crd,ds,deploy,ep,ev,hpa,ing,jobs,limits,ns,netpol,no,pvc,pv,pdb,po,psp,podtemplates,rs,rc,quota,rolebindings,roles,secrets,sa,svc,sts,sc -lforge.profile=default,forge.service=python-api
║ Error from server (Conflict): Operation cannot be fulfilled on namespaces "datawire": The system is ensuring all content is removed from this namespace.  Upon completion, this namespace will automatically be purged by the system.
command 'kubectl delete -n default csr,clusterrolebindings,clusterroles,cm,controllerrevisions,crd,ds,deploy,ep,ev,hpa,ing,jobs,limits,ns,netpol,no,pvc,pv,pdb,po,psp,podtemplates,rs,rc,quota,rolebindings,roles,secrets,sa,svc,sts,sc -lforge.profile=default,forge.service=python-api' failed[1]: Error from server (Conflict): Operation cannot be fulfilled on namespaces "datawire": The system is ensuring all content is removed from this namespace.  Upon completion, this namespace will automatically be purged by the system.
rhs commented 6 years ago

I believe this should be fixed in 0.4.1. Please reopen if it's still a problem.