Test FTC100 fails since A1-SIM update
[nonrtric.git] / service-exposure / stop_pods.sh
old mode 100644 (file)
new mode 100755 (executable)
index 86f22ef..1bc83f6
 # ============LICENSE_END=========================================================
 #
 
+export host=$(kubectl get nodes -o wide | tail -1 | sed s'/  */ /'g | cut -f6 -d' ')
+
+echo "Undeploying applications..."
+echo "---------------------------"
+curl http://$host:31570/uninstall?chart=rapp-helloworld-invoker1
+echo ""
+sleep 2
+curl http://$host:31570/uninstall?chart=rapp-helloworld-invoker2
+echo ""
+sleep 2
+curl http://$host:31570/uninstall?chart=rapp-helloworld-provider
+echo ""
+
 kubectl delete -f  rapps-helm-installer.yaml
 kubectl delete -f  rapps-istio-mgr.yaml
 kubectl delete -f rapps-keycloak-mgr.yaml
 kubectl delete -f chartmuseum.yaml
+kubectl delete -f rapps-webhook.yaml
+kubectl delete -f MutatingWebhookConfiguration.yaml