From 1447c964ec6ee5e6a1bdf0cdb8cf766deef570f3 Mon Sep 17 00:00:00 2001 From: tormakris Date: Tue, 2 Apr 2019 23:45:31 +0200 Subject: [PATCH] bunch of changes --- cluster-update | 2 +- .../deploy_function.sh | 6 +++--- update.sh => update/update.sh | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename deploy/deploy_kubeless_function.sh => functions/deploy_function.sh (69%) rename update.sh => update/update.sh (100%) diff --git a/cluster-update b/cluster-update index 60f64ff..040d098 100644 --- a/cluster-update +++ b/cluster-update @@ -5,7 +5,7 @@ for LINE in $(cat $WORKER_LIST | grep -vE "^#"); do WORKERNAME=`echo $LINE | awk -F"/" '{print $NF}'` echo "[worker:$WORKERNAME] Updating..." - ssh $WORKERNAME -o "StrictHostKeyChecking no" "bash -s" < ./update.sh + ssh $WORKERNAME -o "StrictHostKeyChecking no" "bash -s" < ./update/update.sh echo "[worker:$WORKERNAME] Update is completed." done diff --git a/deploy/deploy_kubeless_function.sh b/functions/deploy_function.sh similarity index 69% rename from deploy/deploy_kubeless_function.sh rename to functions/deploy_function.sh index b783951..a830a6b 100644 --- a/deploy/deploy_kubeless_function.sh +++ b/functions/deploy_function.sh @@ -2,9 +2,9 @@ #$1=runtime #$2=filename #$3=function name +#$4/handler -FILENAME=cut $2 -d"." -c2 -kubeless function deploy $3 --runtime $1 --from-file $2 --handler $FILENAME.$3 -kubeless trigger http create $3--function-name $3 --path $3 --hostname $3.kubeless +kubeless function deploy $3 --runtime $1 --from-file $2 --handler $4 +kubeless trigger http create $3 --function-name $3 --path $3 --hostname $3.kubeless #Test with curl --data '{"Another": "Echo"}' --header "Host: get-python.192.168.99.100.nip.io" --header "Content-Type:application/json" 192.168.99.100/echo diff --git a/update.sh b/update/update.sh similarity index 100% rename from update.sh rename to update/update.sh