public static boolean checkForPodCondition(V1Pod pod, PodCondition podCondition) {
        List<V1PodCondition> conditions = pod.getStatus().getConditions();
        if (conditions == null || conditions.isEmpty() || podCondition == null) {
            return false;
        }
        for (V1PodCondition v1PodCondition : conditions) {
            if (v1PodCondition.getType().equalsIgnoreCase(podCondition.getPodCondition())
                    && Boolean.valueOf(v1PodCondition.getStatus())) {
                return true;
            }
        }
        return false;
    }
Checks if provided pod condition status is true in the pod
@param pod
@param podCondition
@return true is condition is set in Pod, else false
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/K8sPodUtil.java