From 815d5e3ba17c03aa33aa03916ab83af185e5c0a9 Mon Sep 17 00:00:00 2001 From: Michael Ryan Peter Date: Thu, 14 Mar 2024 16:55:11 -0400 Subject: [PATCH] Update "Deleting an extension" --- docs/Tasks/uninstall-an-extension.md | 58 +++++++++++++++++++++------- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/docs/Tasks/uninstall-an-extension.md b/docs/Tasks/uninstall-an-extension.md index 4ebd24a37..9611b05f7 100644 --- a/docs/Tasks/uninstall-an-extension.md +++ b/docs/Tasks/uninstall-an-extension.md @@ -1,14 +1,44 @@ -Uninstalling an extension is as simple as deleting an existing ClusterExtension CR: - -```bash -$ kubectl get clusterextensions -NAME AGE -operatorhubio-argocd-operator 53s - -$ kubectl delete clusterextension argocd-operator -clusterextension.olm.operatorframework.io "argocd-operator" deleted -$ kubectl get namespaces | grep argocd -$ -$ kubectl get crds | grep argocd-operator -$ -``` +# Deleting an extension + +You can uninstall a Kubernetes extension and its associated custom resource definitions (CRD) by deleting the extension's custom resource (CR). + +## Prerequisites + +* You have an extension installed. + +## Procedure + +* Delete the extension's CR: + + ``` terminal + $ kubectl delete clusterextensions + ``` + + `extension_name` + : Specifies the name defined in the `metadata.name` field of the extension's CR. + + ``` text title="Example output" + clusterextension.olm.operatorframework.io "argocd-operator" deleted + ``` + +### Verification + +1. Verify that the Kubernetes extension is deleted: + + ``` terminal + $ kubectl get clusterextension.olm.operatorframework.io + ``` + + ``` text title="Example output" + No resources found + ``` + +2. Verify that the extension's system namespace is deleted: + + ``` terminal + $ kubectl get ns -system + ``` + + ``` text title="Example output" + Error from server (NotFound): namespaces "argo-operator-system" not found + ```