I'm trying my hand at building a community provide...
# general
b
I'm trying my hand at building a community provider, and have a deprecated in the schema: https://github.com/rancher/terraform-provider-rke/blob/91b6d14d676aab96dc62aa0ca6135089105889ea/rke/schema_rke_cluster_node.go#L33 This creates a duplicate as expected, however I'm not sure how to override it. The TS schema has
Copy code
export interface RKEClusterNode {
// snip
/**
     * Node roles in k8s cluster. `controlplane`, `etcd` and `worker` are supported. (list)
     */
    roles: pulumi.Input<pulumi.Input<string>[]>;
    roles?: pulumi.Input<string>;
}
So I gave the following a try
Copy code
Resources: map[string]*tfbridge.ResourceInfo{
			"rke_cluster": {
				Tok: makeResource(mainMod, "RKECluster"),
				Fields: map[string]*tfbridge.SchemaInfo{
					"nodes": {
						Fields: map[string]*tfbridge.SchemaInfo{
							"roles": {
								Name: "RoleList",
							},
						},
					},
				},
			},
		},