jenkins-x-plugins/jx-admin

create a command to completely remove a Jenkins X installation

Closed this issue · 4 comments

we don't have a clean jx admin destroy command to remove all of the resources from gitops.

An implementation might be able to clone the cluster git repository and do something like kubectl delete -R -f config-root?

As discovered and discussed on Slack, to avoid "not found" errors, delete first the namespaces, then the cluster:

kubectl delete -R -f config-root/namespaces
kubectl delete -R -f config-root/cluster

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle rotten

I think is simple enough to issue the commands above as is also described in https://jenkins-x.io/v3/admin/uninstall/delete-jx/

So I think this issue can be closed.