From f5bfc268be55c437ce3376872fb5275183aea01b Mon Sep 17 00:00:00 2001 From: Mikalai Radchuk <509198+m1kola@users.noreply.github.com> Date: Mon, 12 May 2025 11:35:16 +0200 Subject: [PATCH] Clarify what gets deleted on CSV deletion --- content/en/docs/Tasks/uninstall-operator.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/en/docs/Tasks/uninstall-operator.md b/content/en/docs/Tasks/uninstall-operator.md index 0d2129ac..2e2c214b 100644 --- a/content/en/docs/Tasks/uninstall-operator.md +++ b/content/en/docs/Tasks/uninstall-operator.md @@ -39,6 +39,8 @@ kubectl delete subscription -n The `CSV` contains all the information that OLM needs to manage an operator, and it effectively represents an operator that is installed on cluster. By deleting a `CSV`, OLM will delete the resources it created for the operator such as the `deployment`, `RBAC`, and any corresponding `CSVs` that OLM "Copied" into other namespaces watched by the operator. +Note that deleting a CSV only deletes objects derived from the CSV and does not delete objects from the bundle. For example, while RBAC resources derived from the CSV's `permissions` and `clusterPermissions` fields will be deleted, any RBAC resources included directly in the bundle itself will remain on the cluster. + If you wish to look up a list of `ClusterServiceVersion` in a specific namespace to see which `ClusterServiceVersion` you need to delete, you can use the example `kubectl` command: ```bash