X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric_robot_suite%2Fhelm%2Fric-robot%2Fdemo-k8s.sh;h=38c0db1419ccc5b7619a0a1658d50c3d99f3b3cb;hb=0b085bb3d3cbff7a109fc550ffa220e11db0ba2d;hp=ae3ae62b6455e9819e5e9862b829561c04b466d5;hpb=c5fa07bcd8cbd614bcd813cac698385b789bcfcb;p=it%2Ftest.git diff --git a/ric_robot_suite/helm/ric-robot/demo-k8s.sh b/ric_robot_suite/helm/ric-robot/demo-k8s.sh index ae3ae62..38c0db1 100755 --- a/ric_robot_suite/helm/ric-robot/demo-k8s.sh +++ b/ric_robot_suite/helm/ric-robot/demo-k8s.sh @@ -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