diff --git a/Documentation/ceph-teardown.md b/Documentation/ceph-teardown.md index ccf9c5732..7f03db438 100644 --- a/Documentation/ceph-teardown.md +++ b/Documentation/ceph-teardown.md @@ -115,7 +115,17 @@ The operator is responsible for removing the finalizer after the mounts have bee If for some reason the operator is not able to remove the finalizer (ie. the operator is not running anymore), you can delete the finalizer manually with the following command: ```console -kubectl -n rook-ceph patch crd cephclusters.ceph.rook.io --type merge -p '{"metadata":{"finalizers": [null]}}' +for CRD in $(kubectl get crd -n rook-ceph | awk '/ceph.rook.io/ {print $1}'); do kubectl patch crd -n rook-ceph $CRD --type merge -p '{"metadata":{"finalizers": [null]}}'; done +``` + +This command will patch the following CRDs on v1.3: +```console +cephblockpools.ceph.rook.io +cephclients.ceph.rook.io +cephfilesystems.ceph.rook.io +cephnfses.ceph.rook.io +cephobjectstores.ceph.rook.io +cephobjectstoreusers.ceph.rook.io ``` Within a few seconds you should see that the cluster CRD has been deleted and will no longer block other cleanup such as deleting the `rook-ceph` namespace.