From 9ab343f409cb1b6584388df4d44596295d819fc0 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Moreira dos Santos Date: Fri, 30 Jul 2021 02:38:36 -0300 Subject: [PATCH] docs: fix command to remove cluster CRD finalizer Add the namespace option to the `kubectl patch` command. Signed-off-by: Carlos Eduardo Moreira dos Santos --- Documentation/ceph-teardown.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ceph-teardown.md b/Documentation/ceph-teardown.md index db3f8dc0a..58e0ac02f 100644 --- a/Documentation/ceph-teardown.md +++ b/Documentation/ceph-teardown.md @@ -153,7 +153,7 @@ If for some reason the operator is not able to remove the finalizer (ie. the ope ```console for CRD in $(kubectl get crd -n rook-ceph | awk '/ceph.rook.io/ {print $1}'); do kubectl get -n rook-ceph "$CRD" -o name | \ - xargs -I {} kubectl patch {} --type merge -p '{"metadata":{"finalizers": [null]}}' + xargs -I {} kubectl patch -n rook-ceph {} --type merge -p '{"metadata":{"finalizers": [null]}}' done ```