mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 21:25:09 +00:00
Update e2e scripts to use the -template parameter.
Add a script for the update demo.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user