fabric8io / gofabric8

CLI used when working with fabric8 running on Kubernetes or OpenShift
https://fabric8.io/
Apache License 2.0
147 stars 72 forks source link

gofabric8 clean #588

Open magick93 opened 7 years ago

magick93 commented 7 years ago

I am trying to remove all Fabric8 stuff -(apps, pods, services, etc etc).

I tried gofabric8 clean cluster and got:

* cluster.
* environ.
....```

I then `oc project fabric8` and get ```Now using project "fabric8" on server "https://apps.mydomain.com:8443".

Then I try gofabric8 clean system and get:

gofabric8 clean system
WARNING this is destructive and will remove ALL fabric8 apps, environments and configuration from cluster fabric8/apps-teammachine-us:8443/anton.  Continue? [y/N] y
Removing...
Cannot find parent namespace for: fabric8
Deleting pvc with label provider=fabric8
Error deleting PVC auth-db-postgresql-data
Error deleting PVC init-tenant-postgresql-data
Error deleting PVC keycloak-db-postgresql-data
Error deleting PVC wit-postgresql-data
Deleting projects with label provider=fabric8
Successfully cleaned up

Then I try:

gofabric8 clean apps  
Cannot find parent namespace for: fabric8
WARNING this is destructive and will remove all of your apps!
for your tenant:  running in namespaces: -stage & -run

Continue [y/N]: y
Cleaning apps running in namespace: -stage
No resources found
No resources found
No resources found
No resources found
chmouel commented 7 years ago

the clean system is deleting everything already, i don't believe you need to delete apps after!