Code Review
/
it
/
test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
change directory name to workload_generators as it will contain multiple workload...
[it/test.git]
/
ric_robot_suite
/
helm
/
ric-robot
/
demo-k8s.sh
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
(executable)
--- 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
# Set the defaults
-echo "Number of parameters:"
-echo $#
+
#
echo "Number of parameters:"
+
#
echo $#
if [ $# -lt 2 ];then
usage
if [ $# -lt 2 ];then
usage
@@
-39,7
+39,7
@@
if [ $# -lt 2 ];then
fi
NAMESPACE=$1
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
shift
@@
-49,18
+49,13
@@
shift
while [ $# -gt 0 ]
do
key="$1"
while [ $# -gt 0 ]
do
key="$1"
- echo "KEY:"
- echo $key
+
#
echo "KEY:"
+
#
echo $key
case $key in
init_robot)
TAG="UpdateWebPage"
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
VARIABLES="$VARIABLES -v WEB_PASSWORD:$WEB_PASSWORD"
shift
if [ $# -eq 2 ];then
@@
-76,7
+71,7
@@
do
esac
done
esac
done
-set -x
+
#
set -x
ETEHOME=/var/opt/RIC
ETEHOME=/var/opt/RIC