From 9e3c1bfd6c4c01169276ee1bf0c0683c140a3821 Mon Sep 17 00:00:00 2001 From: Lumir Sliva <61183145+lumir-sliva@users.noreply.github.com> Date: Wed, 1 Apr 2026 20:54:47 +0200 Subject: [PATCH] doc: add CSI operator resource cleanup steps to teardown guide Add a section to the teardown documentation with cleanup commands for CSI operator resources: OperatorConfig, Driver, ClientProfile, ClientProfileMapping, and CephConnection custom resources, plus the csi-operator.yaml deployment manifest. Signed-off-by: Lumir Sliva <61183145+lumir-sliva@users.noreply.github.com> (cherry picked from commit 943ea89cd5a219ef83539c045b4ef84be78ae56c) --- .../Storage-Configuration/ceph-teardown.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/Storage-Configuration/ceph-teardown.md b/Documentation/Storage-Configuration/ceph-teardown.md index 70c216147..39bd60669 100644 --- a/Documentation/Storage-Configuration/ceph-teardown.md +++ b/Documentation/Storage-Configuration/ceph-teardown.md @@ -75,6 +75,19 @@ kubectl delete storageclass csi-cephfs The cleanup jobs might not start if the resources created on top of Rook Cluster are not deleted completely. See [deleting block and file artifacts](#delete-the-block-and-file-artifacts) +### Delete the CSI Operator Resources + +These commands clean up the CSI operator resources. + +```console +kubectl -n rook-ceph delete operatorconfigs.csi.ceph.io --all +kubectl -n rook-ceph delete drivers.csi.ceph.io --all +kubectl -n rook-ceph delete clientprofiles.csi.ceph.io --all +kubectl -n rook-ceph delete clientprofilemappings.csi.ceph.io --all +kubectl -n rook-ceph delete cephconnections.csi.ceph.io --all +kubectl delete -f csi-operator.yaml +``` + ### Delete the Operator Resources Remove the Rook operator, RBAC, and CRDs, and the `rook-ceph` namespace.