Uninstalling

A guide to uninstalling the DataPower Operator.

Order of uninstallation

The uninstall steps vary depending on what resources you wish to uninstall.

Uninstalling only the operator

It is possible, and supported, to uninstall the operator leaving behind operands (DataPowerService custom resources, etc.) in a running state. This is often a useful step when troubleshooting operator installation issues.

If you wish to only uninstall the operator, complete the respective uninstall steps below based on your install method.

Uninstalling the operator and operands

If you want to completely remove all DataPower Operator resources and related artifacts from your cluster, complete the respective uninstall steps below based on your install method, and then also remove (delete) the CRDs from the cluster.

Deleting the CRDs from the cluster will remove all operand instances, as well as the operator's conversion webhook Deployment.

Uninstalling with OLM

In the GUI

In the OCP GUI, navigate to Operators->Installed Operators on the left side pane. In the Project dropdown box, select the namespace from which to uninstall. Find the specific DataPower Operator Subscription you wish to uninstall and click the options menu on the right side of the row. Select "Uninstall Operator".

In the CLI

Using the oc CLI tool, delete the DataPower Operator Subscription by doing

oc -n mynamespace delete subscription datapower-operator

Uninstalling with Helm

Navigate to the Helm chart directory which you used to install the Operator:

cd datapower-operator-chart-X.Y.Z/charts/stable/datapower-operator

Uninstall using helm:

helm uninstall datapower-operator .

Here datapower-operator is the Helm release name. This name must match the name of the release currently installed; if you don't know the name you can confirm it by listing the Helm releases in the namespace (helm list).

Uninstalling with CASE

For uninstalling via CASE, refer to the relevant uninstall command in the CASE document.

Removing CRDs

NOTE: Removing these CRDs will delete ALL respective custom resource instances you have deployed on your cluster; proceed with caution.

Delete all *.datapower.ibm.com CustomResourceDefinitions:

oc get crd -o=name | grep 'datapower.ibm.com' | xargs oc delete

Optionally, one-by-one:

oc delete crd datapowerservices.datapower.ibm.com
oc delete crd datapowermonitors.datapower.ibm.com
oc delete crd datapowerrollouts.datapower.ibm.com
oc delete crd datapowerservicebindings.datapower.ibm.com
oc delete crd datapowermustgathers.datapower.ibm.com
oc delete crd datapowermustgathermanagers.datapower.ibm.com