Skip to content

Commit 48be4b0

Browse files
authored
Merge pull request #40634 from cgoncalves/cnf-3595
CNF-3595: uninstall SR-IOV Network Operator
2 parents 7a4f0f4 + 4937c82 commit 48be4b0

File tree

3 files changed

+110
-0
lines changed

3 files changed

+110
-0
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,8 @@ Topics:
10701070
File: using-pod-level-bonding
10711071
- Name: Configuring hardware offloading
10721072
File: configuring-hardware-offloading
1073+
- Name: Uninstalling the SR-IOV Operator
1074+
File: uninstalling-sriov-operator
10731075
- Name: OpenShift SDN default CNI network provider
10741076
Dir: openshift_sdn
10751077
Topics:
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * networking/hardware_networks/uninstalling-sriov-operator.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="nw-sriov-operator-uninstall_{context}"]
7+
= Uninstalling the SR-IOV Network Operator
8+
9+
As a cluster administrator, you can uninstall the SR-IOV Network Operator.
10+
11+
.Prerequisites
12+
13+
* You have access to an {product-title} cluster using an account with `cluster-admin` permissions.
14+
* You have the SR-IOV Network Operator installed.
15+
16+
.Procedure
17+
18+
. Delete all SR-IOV custom resources (CRs):
19+
+
20+
[source,terminal]
21+
----
22+
$ oc delete sriovnetwork -n openshift-sriov-network-operator --all
23+
----
24+
+
25+
[source,terminal]
26+
----
27+
$ oc delete sriovnetworknodepolicy -n openshift-sriov-network-operator --all
28+
----
29+
+
30+
[source,terminal]
31+
----
32+
$ oc delete sriovibnetwork -n openshift-sriov-network-operator --all
33+
----
34+
35+
. Follow the instructions in the "Deleting Operators from a cluster" section to remove the SR-IOV Network Operator from your cluster.
36+
37+
. Delete the SR-IOV custom resource definitions that remain in the cluster after the SR-IOV Network Operator is uninstalled:
38+
+
39+
[source,terminal]
40+
----
41+
$ oc delete crd sriovibnetworks.sriovnetwork.openshift.io
42+
----
43+
+
44+
[source,terminal]
45+
----
46+
$ oc delete crd sriovnetworknodepolicies.sriovnetwork.openshift.io
47+
----
48+
+
49+
[source,terminal]
50+
----
51+
$ oc delete crd sriovnetworknodestates.sriovnetwork.openshift.io
52+
----
53+
+
54+
[source,terminal]
55+
----
56+
$ oc delete crd sriovnetworkpoolconfigs.sriovnetwork.openshift.io
57+
----
58+
+
59+
[source,terminal]
60+
----
61+
$ oc delete crd sriovnetworks.sriovnetwork.openshift.io
62+
----
63+
+
64+
[source,terminal]
65+
----
66+
$ oc delete crd sriovoperatorconfigs.sriovnetwork.openshift.io
67+
----
68+
69+
. Delete the SR-IOV webhooks:
70+
+
71+
[source,terminal]
72+
----
73+
$ oc delete mutatingwebhookconfigurations network-resources-injector-config
74+
----
75+
+
76+
[source,terminal]
77+
----
78+
$ oc delete MutatingWebhookConfiguration sriov-operator-webhook-config
79+
----
80+
+
81+
[source,terminal]
82+
----
83+
$ oc delete ValidatingWebhookConfiguration sriov-operator-webhook-config
84+
----
85+
86+
. Delete the SR-IOV Network Operator namespace:
87+
+
88+
[source,terminal]
89+
----
90+
$ oc delete namespace openshift-sriov-network-operator
91+
----
92+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:_content-type: ASSEMBLY
2+
[id="uninstalling-sriov-operator"]
3+
= Uninstalling the SR-IOV Network Operator
4+
include::modules/common-attributes.adoc[]
5+
:context: uninstalling-sr-iov-operator
6+
7+
toc::[]
8+
9+
To uninstall the SR-IOV Network Operator, you must delete any running SR-IOV workloads, uninstall the Operator, and delete the webhooks that the Operator used.
10+
11+
include::modules/nw-sriov-operator-uninstall.adoc[leveloffset=+1]
12+
13+
[role="_additional-resources"]
14+
.Additional resources
15+
16+
* xref:../../operators/admin/olm-deleting-operators-from-cluster.adoc#olm-deleting-operators-from-a-cluster[Deleting Operators from a cluster]

0 commit comments

Comments
 (0)