def cluster_kubeconfig(name, server, ca_data):
    """Generate and return a cluster kubeconfig object."""
    return {
        "name": name,
        "cluster": {
            "server": server,
            "certificate-authority-data": ca_data,
        },
    }