docs: improve ceph finalizer patching (#1488)

- docs: improve ceph finalizer patching (#1488)
- docs: ceph-teardown: replace double grep w/ awk

Signed-off-by: Denys Vitali <denys.vitali@swisscom.com>
This commit is contained in:
Denys Vitali committed 2020-04-22 16:47:14 +02:00
1 parent 56cd128eef
commit 5693944737
1 file changed
+11 -1
+11 -1
View File
@@ -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.