public static DeploymentStatus.ServiceStatus getStatus(List<V1Pod> v1PodList) {
        if (v1PodList == null || v1PodList.isEmpty()) {
            return DeploymentStatus.ServiceStatus.NOT_DEPLOYED;
        }
        boolean ready = true;
        for (V1Pod v1Pod : v1PodList) {
            ready = K8sPodUtil.checkForPodCondition(v1Pod, PodCondition.READY) && ready;
        }
        if (ready) {
            return DeploymentStatus.ServiceStatus.RUNNING;
        } else {
            return DeploymentStatus.ServiceStatus.NOT_RUNNING;
        }
    }
Message from pods not in ready state
@param v1PodList
@return null if pods are in ready condition, else pods message
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/DeploymentStatusUtil.java