NONRTRIC-924: RANPM - Add control-panel to Kubernetes deployment
[nonrtric/plt/ranpm.git] / install / uninstall-nrt.sh
index 7b324ed..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 "##########################"
@@ -44,11 +52,8 @@ echo "Uninstall $INST"
 
 helm repo remove strimzi
 helm uninstall   -n nonrtric strimzi-kafka-crds
-#kubectl delete -f 'https://strimzi.io/install/latest?namespace=nonrtric' -n nonrtric
 check_error $? "$INST"
 
-helm uninstall namespaces
-
 # Print final result
 if [ $NUM_ERRORS -eq 0 ]; then
     echo "Uninstall PM Demo OK"
@@ -58,5 +63,3 @@ else
 fi
 
 exit 0
-
-