mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 22:53:22 +00:00
Update scripts to expect versioned output in templates.
This commit is contained in:
@@ -35,7 +35,7 @@ $KUBECFG -c "${GUESTBOOK}/redis-slave-controller.json" create /replicationContro
|
||||
|
||||
sleep 5
|
||||
|
||||
POD_LIST_1=$($KUBECFG '-template={{range.Items}}{{.Name}} {{end}}' list pods)
|
||||
POD_LIST_1=$($KUBECFG '-template={{range.items}}{{.id}} {{end}}' list pods)
|
||||
echo "Pods running: ${POD_LIST_1}"
|
||||
|
||||
$KUBECFG stop redisSlaveController
|
||||
@@ -45,7 +45,7 @@ $KUBECFG rm redisSlaveController
|
||||
$KUBECFG delete services/redismaster
|
||||
$KUBECFG delete pods/redis-master-2
|
||||
|
||||
POD_LIST_2=$($KUBECFG '-template={{range.Items}}{{.Name}} {{end}}' list pods)
|
||||
POD_LIST_2=$($KUBECFG '-template={{range.items}}{{.id}} {{end}}' list pods)
|
||||
echo "Pods running after shutdown: ${POD_LIST_2}"
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user