mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
96 lines
3.3 KiB
Plaintext
96 lines
3.3 KiB
Plaintext
//Module included in the following assemblies
|
|
//
|
|
//post_installation_configuration/multiarch-tuning-operator.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="multi-architecture-uninstalling-using-cli_{context}"]
|
|
= Uninstalling the Multiarch Tuning Operator by using the CLI
|
|
|
|
You can uninstall the Multiarch Tuning Operator by using the {oc-first}.
|
|
|
|
.Prerequisites
|
|
|
|
* You have installed `oc`.
|
|
* You have logged in to `oc` as a user with `cluster-admin` privileges.
|
|
* You deleted the `ClusterPodPlacementConfig` object.
|
|
+
|
|
[IMPORTANT]
|
|
====
|
|
You must delete the `ClusterPodPlacementConfig` object before uninstalling the Multiarch Tuning Operator. Uninstalling the Operator without deleting the `ClusterPodPlacementConfig` object can lead to unexpected behavior.
|
|
====
|
|
|
|
.Procedure
|
|
|
|
. Get the `Subscription` object name for the Multiarch Tuning Operator by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get subscription.operators.coreos.com -n <namespace> <1>
|
|
----
|
|
<1> Replace `<namespace>` with the name of the namespace where you want to uninstall the Multiarch Tuning Operator.
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
NAME PACKAGE SOURCE CHANNEL
|
|
openshift-multiarch-tuning-operator multiarch-tuning-operator redhat-operators stable
|
|
----
|
|
|
|
. Get the `currentCSV` value for the Multiarch Tuning Operator by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get subscription.operators.coreos.com <subscription_name> -n <namespace> -o yaml | grep currentCSV <1>
|
|
----
|
|
<1> Replace `<subscription_name>` with the `Subscription` object name. For example: `openshift-multiarch-tuning-operator`. Replace `<namespace>` with the name of the namespace where you want to uninstall the Multiarch Tuning Operator.
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
currentCSV: multiarch-tuning-operator.<version>
|
|
----
|
|
|
|
. Delete the `Subscription` object by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc delete subscription.operators.coreos.com <subscription_name> -n <namespace> <1>
|
|
----
|
|
<1> Replace `<subscription_name>` with the `Subscription` object name. Replace `<namespace>` with the name of the namespace where you want to uninstall the Multiarch Tuning Operator.
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
subscription.operators.coreos.com "openshift-multiarch-tuning-operator" deleted
|
|
----
|
|
|
|
. Delete the CSV for the Multiarch Tuning Operator in the target namespace using the `currentCSV` value by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc delete clusterserviceversion <currentCSV_value> -n <namespace> <1>
|
|
----
|
|
<1> Replace `<currentCSV>` with the `currentCSV` value for the Multiarch Tuning Operator. For example: `multiarch-tuning-operator.<version>`. Replace `<namespace>` with the name of the namespace where you want to uninstall the Multiarch Tuning Operator.
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
clusterserviceversion.operators.coreos.com "multiarch-tuning-operator.<version>" deleted
|
|
----
|
|
|
|
.Verification
|
|
|
|
* To verify that the Multiarch Tuning Operator is uninstalled, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get csv -n <namespace> <1>
|
|
----
|
|
<1> Replace `<namespace>` with the name of the namespace where you have uninstalled the Multiarch Tuning Operator.
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
No resources found in openshift-multiarch-tuning-operator namespace.
|
|
----
|