You can use the Red Hat® OpenShift® CLI to
uninstall the IBM® MQ Operator from Red Hat OpenShift. There are
differences in the uninstall process, depending on whether the IBM MQ Operator is installed in a single namespace, or installed and
available to all namespaces on the cluster.
Before you begin
Log in to your Red Hat OpenShift cluster using oc login.
Procedure
-
If the IBM MQ Operator is installed in a single namespace,
complete the following substeps:
-
Ensure you are in the correct project:
oc project <project_name>
-
View the queue managers installed in the project:
-
Delete one or more queue managers:
oc delete qmgr <qmgr_name>
Note that, although
these queue managers continue to run, they might not function as expected without an
IBM MQ Operator.
-
View the ClusterServiceVersion instances:
-
Delete the IBM MQ
ClusterServiceVersion:
oc delete csv <ibm_mq_csv_name>
-
View the subscriptions:
-
Delete all subscriptions:
oc delete subscription <ibm_mq_subscription_name>
- Optional:
If nothing else is using common services, you might want to uninstall the common services
operator, and delete the operator group:
- Uninstall the common services operator, by following the instructions in Uninstalling
common services in the IBM Cloud Pak® foundational services product
documentation.
- View the operator group:
oc get operatorgroup
- Delete the operator
group:
oc delete OperatorGroup <operator_group_name>
-
If the IBM MQ Operator is installed and available to all
namespaces on the cluster, complete the following substeps:
-
View all the installed queue managers:
-
Delete one or more queue managers:
oc delete qmgr <qmgr_name> -n <namespace_name>
Note that, although these queue managers continue to run, they might not function as expected
without an
IBM MQ Operator.
-
View the ClusterServiceVersion instances:
-
Delete the IBM MQ
ClusterServiceVersion from the cluster:
oc delete csv <ibm_mq_csv_name> -n openshift-operators
-
View the subscriptions:
oc get subscription -n openshift-operators
-
Delete the subscriptions:
oc delete subscription <ibm_mq_subscription_name> -n openshift-operators
-
If you are using Red Hat OpenShift Container Platform 4.7, you might need to manually delete the validating web hook:
oc delete validatingwebhookconfiguration namespace.validator.queuemanagers.mq.ibm.com
- Optional:
If nothing else is using common services, you might want to uninstall the common services
operator: