From 5d151f53d3a8a66ff4a42fe68998bd19321ab33d Mon Sep 17 00:00:00 2001 From: StephenJamesSmith Date: Fri, 27 Oct 2023 11:00:32 -0400 Subject: [PATCH] TELCODOCS-1309: First draft --- .../kmm-kernel-module-management.adoc | 5 +++++ modules/kmm-uninstalling-kmm.adoc | 10 +++++++++ modules/kmm-uninstalling-kmmo-cli.adoc | 21 +++++++++++++++++++ ...kmm-uninstalling-kmmo-red-hat-catalog.adoc | 18 ++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 modules/kmm-uninstalling-kmm.adoc create mode 100644 modules/kmm-uninstalling-kmmo-cli.adoc create mode 100644 modules/kmm-uninstalling-kmmo-red-hat-catalog.adoc diff --git a/hardware_enablement/kmm-kernel-module-management.adoc b/hardware_enablement/kmm-kernel-module-management.adoc index 9b50c0850f..808b88ea05 100644 --- a/hardware_enablement/kmm-kernel-module-management.adoc +++ b/hardware_enablement/kmm-kernel-module-management.adoc @@ -15,6 +15,11 @@ include::modules/kmm-installation.adoc[leveloffset=+1] include::modules/kmm-installing-using-web-console.adoc[leveloffset=+2] include::modules/kmm-installing-using-cli.adoc[leveloffset=+2] include::modules/kmm-installing-older-versions.adoc[leveloffset=+2] +// Added for TELCODOCS-1309 +include::modules/kmm-uninstalling-kmm.adoc[leveloffset=+1] +include::modules/kmm-uninstalling-kmmo-red-hat-catalog.adoc[leveloffset=+2] +include::modules/kmm-uninstalling-kmmo-cli.adoc[leveloffset=+2] + include::modules/kmm-deploying-modules.adoc[leveloffset=+1] include::modules/kmm-creating-module-cr.adoc[leveloffset=+2] diff --git a/modules/kmm-uninstalling-kmm.adoc b/modules/kmm-uninstalling-kmm.adoc new file mode 100644 index 0000000000..1b80b0bc28 --- /dev/null +++ b/modules/kmm-uninstalling-kmm.adoc @@ -0,0 +1,10 @@ +// Module included in the following assemblies: +// +// * hardware_enablement/kmm-kernel-module-management.adoc + +:_content-type: CONCEPT +[id="kmm-uninstalling-kmmo_{context}"] += Uninstalling the Kernel Module Management Operator + +Use one of the following procedures to uninstall the Kernel Module Management (KMM) Operator, depending on how +the KMM Operator was installed. diff --git a/modules/kmm-uninstalling-kmmo-cli.adoc b/modules/kmm-uninstalling-kmmo-cli.adoc new file mode 100644 index 0000000000..b5cad177b1 --- /dev/null +++ b/modules/kmm-uninstalling-kmmo-cli.adoc @@ -0,0 +1,21 @@ +// * hardware_enablement/kmm-kernel-module-management.adoc + +:_content-type: PROCEDURE +[id="kmm-uninstalling-kmmo-cli_{context}"] += Uninstalling a CLI installation + +Use this command if the KMM Operator was installed using the OpenShift CLI. + +.Procedure + +* Run the following command to uninstall the KMM Operator: ++ +[source,terminal] +---- +$ oc delete -k https://github.com/rh-ecosystem-edge/kernel-module-management/config/default +---- ++ +[NOTE] +==== +Using this command deletes the ``Module`` CRD and all ``Module`` instances in the cluster. +==== diff --git a/modules/kmm-uninstalling-kmmo-red-hat-catalog.adoc b/modules/kmm-uninstalling-kmmo-red-hat-catalog.adoc new file mode 100644 index 0000000000..ec1d573963 --- /dev/null +++ b/modules/kmm-uninstalling-kmmo-red-hat-catalog.adoc @@ -0,0 +1,18 @@ +// * hardware_enablement/kmm-kernel-module-management.adoc + +:_content-type: PROCEDURE +[id="kmm-uninstalling-kmmo-red-hat-catalog_{context}"] += Uninstalling a Red Hat catalog installation + +Use this procedure if KMM was installed from the Red Hat catalog. + +.Procedure + +Use the following method to uninstall the KMM Operator: + +* Use the OpenShift console under *Operators* --> *Installed Operators* to locate and uninstall the Operator. + +[NOTE] +==== +Alternatively, you can delete the `Subscription` resource in the KMM namespace. +====