public static boolean checkForContainersRestart(List<V1ContainerStatus> containerStatuses) {
        if (containerStatuses == null) {
            return false;
        }

        for (V1ContainerStatus status : containerStatuses) {
            Integer contRestartCount = status.getRestartCount();
            if (contRestartCount != null && contRestartCount > 0) {
                return true;
            }
        }
        return false;
    }
@param pod
@param restartPodCount
@return If pod restart count is greater than to given restartPodCount then it will return true, else false
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/K8sPodUtil.java