Skip to content

Commit

Permalink
Do not remap the id field to clusterID for the Cluster itself
Browse files Browse the repository at this point in the history
  • Loading branch information
ringods committed Nov 1, 2024
1 parent 61bc3f1 commit 4335b16
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 54 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
**/obj/
Pulumi.*.yaml
**/node_modules/
**/package-lock.json
.DS_Store

**/command-output/
Expand Down
7 changes: 0 additions & 7 deletions provider/cmd/pulumi-resource-cockroach/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1099,9 +1099,6 @@
"type": "string",
"description": "Cloud provider used to host the cluster. Allowed values are: * GCP * AWS * AZURE\n"
},
"clusterId": {
"type": "string"
},
"cockroachVersion": {
"type": "string",
"description": "Major version of CockroachDB running on the cluster.\n"
Expand Down Expand Up @@ -1157,7 +1154,6 @@
"cockroachVersion",
"creatorId",
"deleteProtection",
"clusterId",
"name",
"operationStatus",
"parentId",
Expand Down Expand Up @@ -1220,9 +1216,6 @@
"type": "string",
"description": "Cloud provider used to host the cluster. Allowed values are: * GCP * AWS * AZURE\n"
},
"clusterId": {
"type": "string"
},
"cockroachVersion": {
"type": "string",
"description": "Major version of CockroachDB running on the cluster.\n"
Expand Down
11 changes: 1 addition & 10 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,7 @@ func Provider() tfbridge.ProviderInfo {
},
ComputeID: computeIDField("id"),
},
"cockroach_cluster": {
Tok: cockroachResource(cockroachMod, "Cluster"),
Fields: map[string]*tfbridge.SchemaInfo{
"id": {
Name: "clusterId",
Type: "string",
},
},
ComputeID: computeIDField("id"),
},
"cockroach_cluster": {Tok: cockroachResource(cockroachMod, "Cluster")},
"cockroach_cmek": {
Tok: cockroachResource(cockroachMod, "Cmek"),
Fields: map[string]*tfbridge.SchemaInfo{
Expand Down
6 changes: 0 additions & 6 deletions sdk/dotnet/Cluster.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions sdk/go/cockroach/cluster.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions sdk/nodejs/cluster.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions sdk/python/pulumiverse_cockroach/cluster.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4335b16

Please sign in to comment.