def get_container_status(pod, name):
    """Get the status of container ``name`` from a pod"""
    for cs in pod['status'].get('containerStatuses', ()):
        if cs['name'] == name:
            return cs
    return None
