From 001f57e44719c6d35e0e8159f5b99e70378ffe18 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Fri, 16 Feb 2024 14:27:59 -0600 Subject: [PATCH] Reset script to wipe crds rook intentionally leaves there. --- kubernetes/tools/wipe-rook-resources.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 kubernetes/tools/wipe-rook-resources.sh diff --git a/kubernetes/tools/wipe-rook-resources.sh b/kubernetes/tools/wipe-rook-resources.sh new file mode 100755 index 00000000..5963ed0b --- /dev/null +++ b/kubernetes/tools/wipe-rook-resources.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# remove all rook resources +kubectl patch cephfilesystems ceph-filesystem -p '{"metadata":{"finalizers":null}}' --type=merge -n rook-ceph +kubectl delete cephfilesystems ceph-filesystem -n rook-ceph +kubectl patch cephblockpools ceph-blockpool -p '{"metadata":{"finalizers":null}}' --type=merge -n rook-ceph +kubectl delete cephblockpools ceph-blockpool -n rook-ceph +kubectl patch cephobjectstores ceph-objectstore -p '{"metadata":{"finalizers":null}}' --type=merge -n rook-ceph +kubectl delete cephobjectstores ceph-objectstore -n rook-ceph +kubectl patch CephFilesystemSubVolumeGroup ceph-filesystem-csi -p '{"metadata":{"finalizers":null}}' --type=merge -n rook-ceph +kubectl delete CephFilesystemSubVolumeGroup ceph-filesystem-csi -n rook-ceph