change crictl sandboxes to pods; other references to sandboxes
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
parent
8bc30e7a2e
commit
24a3a0a068
@ -28,10 +28,10 @@ CHECK_PERIOD=${CHECK_PERIOD:-10}
|
|||||||
SLEEP_SECONDS=${SLEEP_SECONDS:-120}
|
SLEEP_SECONDS=${SLEEP_SECONDS:-120}
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
# Use crictl sandboxes because it requires both containerd and
|
# Use crictl pods because it requires both containerd and
|
||||||
# cri-containerd to be working.
|
# cri-containerd to be working.
|
||||||
if ! timeout ${COMMAND_TIMEOUT} ${CRICTL} sandboxes > /dev/null; then
|
if ! timeout ${COMMAND_TIMEOUT} ${CRICTL} pods > /dev/null; then
|
||||||
echo "crictl sandboxes timeout!"
|
echo "crictl pods timeout!"
|
||||||
pkill containerd
|
pkill containerd
|
||||||
pkill cri-containerd
|
pkill cri-containerd
|
||||||
# Wait for a while, as we don't want to kill it again before it is really up.
|
# Wait for a while, as we don't want to kill it again before it is really up.
|
||||||
|
Loading…
Reference in New Issue
Block a user