mirror of https://github.com/k3s-io/k3s
fix the bug that ubuntu check-pods-torn-down doesn't take into account terminating pods nor pods in other namespaces
parent
3db1a6c3ce
commit
e9de110a5d
|
@ -553,7 +553,7 @@ function provision-masterandnode() {
|
|||
function check-pods-torn-down() {
|
||||
local kubectl="${KUBE_ROOT}/cluster/kubectl.sh"
|
||||
local attempt=0
|
||||
while [[ ! -z "$(kubectl get pods | tail -n +2)" ]]; do
|
||||
while [[ ! -z "$(kubectl get pods --show-all --all-namespaces| tail -n +2)" ]]; do
|
||||
if (( attempt > 120 )); then
|
||||
echo "timeout waiting for tearing down pods" >> ~/kube/err.log
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue