From ea36313270f0c9839428f6589c032116161c4945 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Fri, 26 Aug 2022 12:55:01 +0200 Subject: [PATCH] docs: change [null] to [] otherwise it will fail with the following message: ``` The CephCluster "rook-ceph" is invalid: * metadata.finalizers: Invalid value: "": name part must be non-empty * metadata.finalizers: Invalid value: "": name part must consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') * metadata.finalizers: Forbidden: no new finalizers can be added if the object is being deleted, found new finalizers []string{""} ``` Signed-off-by: Andrey Arapov --- Documentation/Storage-Configuration/ceph-teardown.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/Storage-Configuration/ceph-teardown.md b/Documentation/Storage-Configuration/ceph-teardown.md index 2b0eb63a8..e512bca54 100644 --- a/Documentation/Storage-Configuration/ceph-teardown.md +++ b/Documentation/Storage-Configuration/ceph-teardown.md @@ -164,7 +164,7 @@ If for some reason the operator is not able to remove the finalizer (i.e., the o ```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 -n rook-ceph {} --type merge -p '{"metadata":{"finalizers": [null]}}' + xargs -I {} kubectl patch -n rook-ceph {} --type merge -p '{"metadata":{"finalizers": []}}' done ``` @@ -196,6 +196,6 @@ The operator is responsible for removing the finalizers when a CephCluster is de If for some reason the operator is not able to remove the finalizers (i.e., the operator is not running anymore), you can remove the finalizers manually with the following commands: ```console -kubectl -n rook-ceph patch configmap rook-ceph-mon-endpoints --type merge -p '{"metadata":{"finalizers": [null]}}' -kubectl -n rook-ceph patch secrets rook-ceph-mon --type merge -p '{"metadata":{"finalizers": [null]}}' +kubectl -n rook-ceph patch configmap rook-ceph-mon-endpoints --type merge -p '{"metadata":{"finalizers": []}}' +kubectl -n rook-ceph patch secrets rook-ceph-mon --type merge -p '{"metadata":{"finalizers": []}}' ```