change directory name to workload_generators as it will contain multiple workload...
[it/test.git] / ric_robot_suite / helm / ric-robot / demo-k8s.sh
index ae3ae62..38c0db1 100755 (executable)
@@ -30,8 +30,8 @@ function usage
 
 # Set the defaults
 
-echo "Number of parameters:" 
-echo $#
+#echo "Number of parameters:" 
+#echo $#
 
 if [ $# -lt 2 ];then
        usage
@@ -39,7 +39,7 @@ if [ $# -lt 2 ];then
 fi
 
 NAMESPACE=$1
-POD=$(kubectl --namespace $NAMESPACE get pods | sed 's/ .*//'| grep robot)
+POD=$(kubectl --namespace $NAMESPACE get pods -l robotImplementation=ric-robot  --no-headers=true | sed 's/ .*//')
 
 shift
 
@@ -49,18 +49,13 @@ shift
 while [ $# -gt 0 ]
 do
        key="$1"
-        echo "KEY:"
-        echo $key
+        #echo "KEY:"
+        #echo $key
 
        case $key in
        init_robot)
                        TAG="UpdateWebPage"
-                       read -s -p "WEB Site Password for user 'test': " WEB_PASSWORD
-                       if [ "$WEB_PASSWORD" = "" ]; then
-                               echo ""
-                               echo "WEB Password is required for user 'test'"
-                               exit
-                       fi
+                       WEB_PASSWORD=test
                        VARIABLES="$VARIABLES -v WEB_PASSWORD:$WEB_PASSWORD"
                        shift
                        if [ $# -eq 2 ];then
@@ -76,7 +71,7 @@ do
        esac
 done
 
-set -x
+#set -x
 
 
 ETEHOME=/var/opt/RIC