Skip to content

Commit

Permalink
Remove renamed datasource (#74)
Browse files Browse the repository at this point in the history
This causes issues when we fix the major version. Pulumictl currently returns version 0.0.1... but the provider is meant to be on version 1, so when actually using version 1.x it then removes this obsolete datasource causing a diff.
  • Loading branch information
danielrbradley authored Apr 25, 2024
1 parent 00fbadd commit 4c29cdb
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 577 deletions.
25 changes: 3 additions & 22 deletions provider/cmd/pulumi-resource-xyz/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,22 @@
},
"datasources": {
"xyz_data_source": {
"current": "xyz:index/dataSource:DataSource",
"past": [
{
"name": "xyz:index/getDataSource:getDataSource",
"inCodegen": true,
"majorVersion": 0
}
]
}
}
},
"auto-settings": {
"datasources": {
"xyz_data_source": {
"renames": [
"xyz:index/getDataSource:getDataSource"
]
"current": "xyz:index/dataSource:DataSource"
}
}
},
"auto-settings": {},
"renames": {
"resources": {
"xyz:index/resource:Resource": "xyz_resource"
},
"functions": {
"xyz:index/dataSource:DataSource": "xyz_data_source",
"xyz:index/getDataSource:getDataSource": "xyz_data_source_legacy"
"xyz:index/dataSource:DataSource": "xyz_data_source"
},
"renamedProperties": {
"xyz:index/dataSource:DataSource": {
"sampleAttribute": "sample_attribute"
},
"xyz:index/getDataSource:getDataSource": {
"sampleAttribute": "sample_attribute"
},
"xyz:index/resource:Resource": {
"sampleAttribute": "sample_attribute"
}
Expand Down
32 changes: 0 additions & 32 deletions provider/cmd/pulumi-resource-xyz/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,38 +111,6 @@
],
"type": "object"
}
},
"xyz:index/getDataSource:getDataSource": {
"deprecationMessage": "xyz.index/getdatasource.getDataSource has been deprecated in favor of xyz.index/datasource.DataSource",
"inputs": {
"description": "A collection of arguments for invoking getDataSource.\n",
"properties": {
"sampleAttribute": {
"type": "string"
}
},
"type": "object",
"required": [
"sampleAttribute"
]
},
"outputs": {
"description": "A collection of values returned by getDataSource.\n",
"properties": {
"id": {
"description": "The provider-assigned unique ID for this managed resource.\n",
"type": "string"
},
"sampleAttribute": {
"type": "string"
}
},
"required": [
"sampleAttribute",
"id"
],
"type": "object"
}
}
}
}
65 changes: 0 additions & 65 deletions sdk/dotnet/GetDataSource.cs

This file was deleted.

85 changes: 0 additions & 85 deletions sdk/go/xyz/getDataSource.go

This file was deleted.

43 changes: 0 additions & 43 deletions sdk/java/src/main/java/com/pulumi/xyz/XyzFunctions.java

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

This file was deleted.

Loading

0 comments on commit 4c29cdb

Please sign in to comment.