def wait_for_pod_ready(pod_name: str, namespace: str, timeout: int = 60) -> "RobustaPod":
        """
        Waits for the pod to be in Running state
        """
        for _ in range(timeout):  # retry for up to timeout seconds
            try:
                pod = RobustaPod().read(pod_name, namespace)
                if pod.status.phase == "Running":
                    return pod
            except ApiException as e:
                if e.status != 404:  # re-raise the exception if it's not a NotFound error
                    raise
            time.sleep(1)
        else:
            raise RuntimeError(f"Pod {pod_name} in namespace {namespace} is not ready after {timeout} seconds")

        Waits for the pod to be in Running state
        
src/robusta/integrations/kubernetes/custom_models.py