private static String validateAndGetInitContainerMessage(List<V1ContainerStatus> initContainerStatuses) {
        if (initContainerStatuses == null || initContainerStatuses.isEmpty()) {
            return null;
        }
        String initContainerStatus = null;
        for (V1ContainerStatus each : initContainerStatuses) {
            if (each.getState().getTerminated() != null && each.getReady()) {
                // Do nothing
            } else if (each.getState().getWaiting() != null) {
                initContainerStatus = each.getState().getWaiting().getMessage();
                break;
            } else if (each.getState().getRunning() != null) {
                // TODO
            }
        }
        return initContainerStatus;
    }
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