public static String getPodMessage(V1Pod v1Pod) {
        if (v1Pod == null) {
            return null;
        }
        String initContainerAggStatusMsg = validateAndGetInitContainerMessage(
                v1Pod.getStatus().getInitContainerStatuses());
        if (initContainerAggStatusMsg != null) {
            return initContainerAggStatusMsg;
        }
        String containerAggStatusMsg = validateAndGetContainerStatusMessage(v1Pod.getStatus().getContainerStatuses());
        return containerAggStatusMsg != null ? containerAggStatusMsg : v1Pod.getStatus().getMessage();
    }
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