Cleanup the openebs installation and sc 22/14622/1
authoraravind.est <aravindhan.a@est.tech>
Mon, 30 Jun 2025 16:42:13 +0000 (17:42 +0100)
committeraravind.est <aravindhan.a@est.tech>
Mon, 30 Jun 2025 16:42:13 +0000 (17:42 +0100)
Openebs and Storage class cleanup added.

Issue-ID: INT-170
Change-Id: I08f9441d261f10ad638fcefb9e9c0dd75031fdf9
Signed-off-by: aravind.est <aravindhan.a@est.tech>
smo-install/scripts/sub-scripts/clean-up.sh

index 0fc5a7f..49aead2 100755 (executable)
@@ -6,6 +6,7 @@
 # ================================================================================
 # Copyright (C) 2021 AT&T Intellectual Property. All rights
 #                             reserved.
+# Modification Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -24,4 +25,9 @@
 ###
 
 kubectl delete pv --all
-sudo rm -rf /dockerdata-nfs/*
+# Delete storage class for smo
+kubectl delete -f packages/pre-configuration/smo-sc.yaml
+# Delete the openebs installation
+helm delete openebs -n openebs
+# Delete the volume storage directories
+sudo rm -rf /dockerdata-nfs/* /dockerdata/*