def _flatten_cluster_certificate(obj):
    """Flatten the structure of the cluster node into a single dict
    """
    data = {
        'name': obj.context.get('name', None),
        'cluster': obj.context.get('cluster', None),
        'user': obj.context.get('user', None),
        'ca': obj.ca,
        'client_certificate': obj.client_certificate,
        'client_key': obj.client_key,
    }

    return data