operator-framework / operator-lifecycle-manager

A management framework for extending Kubernetes with Operators
https://olm.operatorframework.io
Apache License 2.0
1.71k stars 544 forks source link

How do we uninstall OLM #3140

Open nikhil-nomula opened 10 months ago

nikhil-nomula commented 10 months ago

Support

How do I go about uninstalling OLM?

Question

I installed OLM via after changing my context to the appropriate kubernetes cluster

curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.26.0/install.sh | bash -s v0.26.0

I expected to have an uninstall script so that I can uninstall OLM There is no documentation or a script that is responsible for uninstalling OLM

What did you see instead? Under which circumstances? I see documentation of uninstalling an operator here but there is no documentation for uninstalling OLM itself

Environment

GKE 1.24

nikhil-nomula commented 10 months ago

Is the only way to uninstall

`kubectl delete crd catalogsources.operators.coreos.com kubectl delete crd clusterserviceversions.operators.coreos.com kubectl delete crd installplans.operators.coreos.com kubectl delete crd olmconfigs.operators.coreos.com kubectl delete crd operatorconditions.operators.coreos.com kubectl delete crd operatorgroups.operators.coreos.com kubectl delete crd operators.operators.coreos.com kubectl delete crd subscriptions.operators.coreos.com

k delete namespace operators k delete namespace olm

k delete deployment packageserver k delete deployment catalog-operator k delete deployment olm-operator`

tmshort commented 9 months ago

There's an option to uninstall in the Makefile:

make uninstall