private static String validateAndGetInitContainerStatuses(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().getReason();
                break;
            } else if (each.getState().getRunning() != null) {
                // TODO Handle
            }
        }
        return initContainerStatus;
    }
@param initContainerStatuses
@return status of init container in waiting state, else null
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/model/PodStatusUtil.java