mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
108 lines
2.5 KiB
Plaintext
108 lines
2.5 KiB
Plaintext
// Module included in the following assemblies:
|
|
// * updating/updating_a_cluster/updating_disconnected_cluster/uninstalling-osus.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="update-service-uninstall-cli_{context}"]
|
|
= Uninstalling the OpenShift Update Service Operator by using the CLI
|
|
|
|
You can use the OpenShift CLI (`oc`) to uninstall the OpenShift Update Service Operator.
|
|
|
|
.Prerequisites
|
|
|
|
* All OpenShift Update Service applications have been deleted.
|
|
|
|
.Procedure
|
|
|
|
. Change to the project containing the OpenShift Update Service Operator, for example, `openshift-update-service`:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc project openshift-update-service
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
Now using project "openshift-update-service" on server "https://example.com:6443".
|
|
----
|
|
|
|
. Get the name of the OpenShift Update Service Operator operator group:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get operatorgroup
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
NAME AGE
|
|
openshift-update-service-fprx2 4m41s
|
|
----
|
|
|
|
. Delete the operator group, for example, `openshift-update-service-fprx2`:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc delete operatorgroup openshift-update-service-fprx2
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
operatorgroup.operators.coreos.com "openshift-update-service-fprx2" deleted
|
|
----
|
|
|
|
. Get the name of the OpenShift Update Service Operator subscription:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get subscription
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
NAME PACKAGE SOURCE CHANNEL
|
|
update-service-operator update-service-operator updateservice-index-catalog v1
|
|
----
|
|
|
|
. Using the `Name` value from the previous step, check the current version of the subscribed OpenShift Update Service Operator in the `currentCSV` field:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get subscription update-service-operator -o yaml | grep " currentCSV"
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
currentCSV: update-service-operator.v0.0.1
|
|
----
|
|
|
|
. Delete the subscription, for example, `update-service-operator`:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc delete subscription update-service-operator
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
subscription.operators.coreos.com "update-service-operator" deleted
|
|
----
|
|
|
|
. Delete the CSV for the OpenShift Update Service Operator using the `currentCSV` value from the previous step:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc delete clusterserviceversion update-service-operator.v0.0.1
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
clusterserviceversion.operators.coreos.com "update-service-operator.v0.0.1" deleted
|
|
----
|