Reset script to wipe crds rook intentionally leaves there.
This commit is contained in:
parent
edfe1db25c
commit
001f57e447
1 changed files with 11 additions and 0 deletions
11
kubernetes/tools/wipe-rook-resources.sh
Executable file
11
kubernetes/tools/wipe-rook-resources.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue