Uninstalling the OpenShift Update Service from a cluster
To remove a local copy of the OpenShift Update Service (OSUS) from your cluster, you must first delete the OSUS application and then uninstall the OSUS Operator.
Deleting an OpenShift Update Service application
You can delete an OpenShift Update Service application by using the OpenShift Container Platform web console or CLI.
Deleting an OpenShift Update Service application by using the web console
You can use the OpenShift Container Platform web console to delete an OpenShift Update Service application by using the OpenShift Update Service Operator.
-
The OpenShift Update Service Operator has been installed.
-
In the web console, click Ecosystem → Installed Operators.
-
Choose OpenShift Update Service from the list of installed Operators.
-
Click the Update Service tab.
-
From the list of installed OpenShift Update Service applications, select the application to be deleted and then click Delete UpdateService.
-
From the Delete UpdateService? confirmation dialog, click Delete to confirm the deletion.
Deleting an OpenShift Update Service application by using the CLI
You can use the OpenShift CLI (oc) to delete an OpenShift Update Service application.
-
Get the OpenShift Update Service application name using the namespace the OpenShift Update Service application was created in, for example,
openshift-update-service:$ oc get updateservice -n openshift-update-serviceExample outputNAME AGE service 6s -
Delete the OpenShift Update Service application using the
NAMEvalue from the previous step and the namespace the OpenShift Update Service application was created in, for example,openshift-update-service:$ oc delete updateservice service -n openshift-update-serviceExample outputupdateservice.updateservice.operator.openshift.io "service" deleted
Uninstalling the OpenShift Update Service Operator
You can uninstall the OpenShift Update Service Operator by using the OpenShift Container Platform web console or CLI.
Uninstalling the OpenShift Update Service Operator by using the web console
You can use the OpenShift Container Platform web console to uninstall the OpenShift Update Service Operator.
-
All OpenShift Update Service applications have been deleted.
-
In the web console, click Ecosystem → Installed Operators.
-
Select OpenShift Update Service from the list of installed Operators and click Uninstall Operator.
-
From the Uninstall Operator? confirmation dialog, click Uninstall to confirm the uninstallation.
Uninstalling the OpenShift Update Service Operator by using the CLI
You can use the OpenShift CLI (oc) to uninstall the OpenShift Update Service Operator.
-
All OpenShift Update Service applications have been deleted.
-
Change to the project containing the OpenShift Update Service Operator, for example,
openshift-update-service:$ oc project openshift-update-serviceExample outputNow using project "openshift-update-service" on server "https://example.com:6443". -
Get the name of the OpenShift Update Service Operator operator group:
$ oc get operatorgroupExample outputNAME AGE openshift-update-service-fprx2 4m41s -
Delete the operator group, for example,
openshift-update-service-fprx2:$ oc delete operatorgroup openshift-update-service-fprx2Example outputoperatorgroup.operators.coreos.com "openshift-update-service-fprx2" deleted -
Get the name of the OpenShift Update Service Operator subscription:
$ oc get subscriptionExample outputNAME PACKAGE SOURCE CHANNEL update-service-operator update-service-operator updateservice-index-catalog v1 -
Using the
Namevalue from the previous step, check the current version of the subscribed OpenShift Update Service Operator in thecurrentCSVfield:$ oc get subscription update-service-operator -o yaml | grep " currentCSV"Example outputcurrentCSV: update-service-operator.v0.0.1 -
Delete the subscription, for example,
update-service-operator:$ oc delete subscription update-service-operatorExample outputsubscription.operators.coreos.com "update-service-operator" deleted -
Delete the CSV for the OpenShift Update Service Operator using the
currentCSVvalue from the previous step:$ oc delete clusterserviceversion update-service-operator.v0.0.1Example outputclusterserviceversion.operators.coreos.com "update-service-operator.v0.0.1" deleted