public static String getContainerStatus(V1ContainerStatus containerStatus) {
        if (containerStatus.getState().getRunning() == null) {
            if (containerStatus.getState().getTerminated() != null) {
                return containerStatus.getState().getTerminated().getReason();
            } else if (containerStatus.getState().getWaiting() != null) {
                return containerStatus.getState().getWaiting().getReason();
            }
        } else {
            // any other way?
            return "Running";
        }
        return null;
    }
@param containerStatuses
@return status of container not in running state
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/K8sPodUtil.java