mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
OSDOCS-13230-ui: Added nmstate-console-plugin step to Uninstall K8S NMState Op
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
e2f3e6f6c1
commit
e1bca136b3
@@ -15,6 +15,7 @@ If you need to reinstall the Kubernetes NMState Operator, see "Installing the Ku
|
||||
.Prerequisites
|
||||
|
||||
* You have installed the {oc-first}.
|
||||
* You have installed the `jq` CLI tool.
|
||||
* You are logged in as a user with `cluster-admin` privileges.
|
||||
|
||||
.Procedure
|
||||
@@ -59,7 +60,24 @@ $ oc -n openshift-nmstate delete nmstate nmstate
|
||||
$ oc delete --all deployments --namespace=openshift-nmstate
|
||||
----
|
||||
|
||||
. Delete all the custom resource definition (CRD), such as `nmstates`, that exist in the `nmstate.io` namespace by running the following commands:
|
||||
. After you deleted the `nmstate` CR, remove the `nmstate-console-plugin` console plugin name from the `console.operator.openshift.io/cluster` CR.
|
||||
+
|
||||
.. Store the position of the `nmstate-console-plugin` entry that exists among the list of enable plugins by running the following command. The following command uses the `jq` CLI tool to store the index of the entry in an environment variable named `INDEX`:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
INDEX=$(oc get console.operator.openshift.io cluster -o json | jq -r '.spec.plugins | to_entries[] | select(.value == "nmstate-console-plugin") | .key')
|
||||
----
|
||||
+
|
||||
.. Remove the `nmstate-console-plugin` entry from the `console.operator.openshift.io/cluster` CR by running the following patch command:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc patch console.operator.openshift.io cluster --type=json -p "[{\"op\": \"remove\", \"path\": \"/spec/plugins/$INDEX\"}]" <1>
|
||||
----
|
||||
<1> `INDEX` is an auxiliary variable. You can specify a different name for this variable.
|
||||
|
||||
. Delete all the custom resource definitions (CRDs), such as `nmstates.nmstate.io`, by running the following commands:
|
||||
+
|
||||
[source,terminal]
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user