Update e2e scripts to use the -template parameter.

Add a script for the update demo.
This commit is contained in:
Brendan Burns
2014-08-19 16:43:59 -07:00
parent 9bafb8c541
commit 0adde96bba
4 changed files with 84 additions and 12 deletions

View File

@@ -32,7 +32,7 @@ $CLOUDCFG -c "${GUESTBOOK}/redis-slave-controller.json" create /replicationContr
sleep 5
POD_LIST_1=$($CLOUDCFG -json list pods | jq ".items[].id")
POD_LIST_1=$($CLOUDCFG '-template={{range.Items}}{{.ID}} {{end}}' list pods)
echo "Pods running: ${POD_LIST_1}"
$CLOUDCFG stop redisSlaveController
@@ -42,7 +42,7 @@ $CLOUDCFG rm redisSlaveController
$CLOUDCFG delete services/redismaster
$CLOUDCFG delete pods/redis-master-2
POD_LIST_2=$($CLOUDCFG -json list pods | jq ".items[].id")
POD_LIST_2=$($CLOUDCFG '-template={{range.Items}}{{.ID}} {{end}}' list pods)
echo "Pods running after shutdown: ${POD_LIST_2}"
exit 0