NONRTRIC-924: RANPM - Add control-panel to Kubernetes deployment
[nonrtric/plt/ranpm.git] / install / uninstall-nrt.sh
index ed24340..ab7d3fc 100755 (executable)
@@ -29,14 +29,22 @@ check_error() {
 
 NUM_ERRORS=0
 
+helm uninstall -n nonrtric controlpanel
+check_error $? controlpanel
+helm uninstall -n nonrtric nonrtricgateway
+check_error $? nonrtricgateway
+
 helm uninstall -n ran ran
+check_error $? ran
 
 helm uninstall -n nonrtric nrt-pm
+check_error $? nrt-pm
 
 helm uninstall -n nonrtric nrt-base-1
+check_error $? nrt-base-1
 
 helm uninstall -n nonrtric nrt-base-0
-
+check_error $? nrt-base-0
 
 INST="strimzi-kafka CRDs"
 echo "##########################"
@@ -46,8 +54,6 @@ helm repo remove strimzi
 helm uninstall   -n nonrtric strimzi-kafka-crds
 check_error $? "$INST"
 
-helm uninstall namespaces
-
 # Print final result
 if [ $NUM_ERRORS -eq 0 ]; then
     echo "Uninstall PM Demo OK"
@@ -57,5 +63,3 @@ else
 fi
 
 exit 0
-
-