parent
c135f8a83e
commit
e1b9f1aae2
@ -44,7 +44,7 @@ function validate() {
|
|||||||
|
|
||||||
local id
|
local id
|
||||||
num_running=0
|
num_running=0
|
||||||
for id in "${pod_id_list[@]}"; do
|
for id in "${pod_id_list[@]+${pod_id_list[@]}}"; do
|
||||||
local template_string current_status current_image host_ip
|
local template_string current_status current_image host_ip
|
||||||
template_string="{{and ((index .CurrentState.Info \"${CONTROLLER_NAME}\").State.Running) .CurrentState.Info.net.State.Running}}"
|
template_string="{{and ((index .CurrentState.Info \"${CONTROLLER_NAME}\").State.Running) .CurrentState.Info.net.State.Running}}"
|
||||||
current_status=$($KUBECFG -template="${template_string}" get "pods/$id")
|
current_status=$($KUBECFG -template="${template_string}" get "pods/$id")
|
||||||
|
Loading…
Reference in New Issue
Block a user