def succeeded(job):
    """Check if the CR has either a Ready or Succeeded condition"""
    if "status" not in job:
        return False

    if "conditions" not in job["status"]:
        return False

    for condition in job["status"]["conditions"]:
        if "Succeeded" in condition["type"]:
            return condition["status"] == "True"

        if "Ready" in condition["type"]:
            return condition["status"] == "True"

    return False