From 0d45a112a60312b1dd498b21b1c0511802417443 Mon Sep 17 00:00:00 2001 From: Romil Bhardwaj Date: Wed, 24 Jul 2024 15:42:29 -0700 Subject: [PATCH] fix comments --- sky/provision/kubernetes/instance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sky/provision/kubernetes/instance.py b/sky/provision/kubernetes/instance.py index 93494761984..a5996abe028 100644 --- a/sky/provision/kubernetes/instance.py +++ b/sky/provision/kubernetes/instance.py @@ -236,10 +236,12 @@ def _check_init_containers(pod): raise config_lib.KubernetesError( 'Failed to run init container for pod ' f'{pod.metadata.name}. Error details: {msg}.') - return + continue init_waiting = init_status.state.waiting if (init_waiting is not None and init_waiting.reason not in ['ContainerCreating', 'PodInitializing']): + # TODO(romilb): There may be more states to check for. Add + # them as needed. msg = init_waiting.message if ( init_waiting.message) else str(init_waiting) raise config_lib.KubernetesError(