Skip to content

Commit bcdd6be

Browse files
authored
Migrate to the new TF Shim functionality as a precursor to provider upgrades
1 parent 540e542 commit bcdd6be

File tree

23 files changed

+406
-439
lines changed

23 files changed

+406
-439
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## HEAD (Unreleased)
22
* Upgrade to pulumi-terraform-bridge v2.8.0
33
* Upgrade to Pulumi v2.10.0
4+
* Upgrade to Pulumi v2.12.0 and pulumi-terraform-bridge v2.11.0
45

56
---
67

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
name: postgresql
2-
description: A Pulumi resource provider for postgresql.
3-
language: schema

provider/cmd/pulumi-resource-postgresql/schema.json

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -112,56 +112,6 @@
112112
}
113113
},
114114
"types": {
115-
"postgresql:/SchemaPolicy:SchemaPolicy": {
116-
"properties": {
117-
"create": {
118-
"type": "boolean",
119-
"description": "Should the specified ROLE have CREATE privileges to the specified SCHEMA.\n",
120-
"language": {
121-
"python": {
122-
"mapCase": false
123-
}
124-
}
125-
},
126-
"createWithGrant": {
127-
"type": "boolean",
128-
"description": "Should the specified ROLE have CREATE privileges to the specified SCHEMA and the ability to GRANT the CREATE privilege to other ROLEs.\n",
129-
"language": {
130-
"python": {
131-
"mapCase": false
132-
}
133-
}
134-
},
135-
"role": {
136-
"type": "string",
137-
"description": "The ROLE who is receiving the policy. If this value is empty or not specified it implies the policy is referring to the [`PUBLIC` role](https://www.postgresql.org/docs/current/static/sql-grant.html).\n",
138-
"language": {
139-
"python": {
140-
"mapCase": false
141-
}
142-
}
143-
},
144-
"usage": {
145-
"type": "boolean",
146-
"description": "Should the specified ROLE have USAGE privileges to the specified SCHEMA.\n",
147-
"language": {
148-
"python": {
149-
"mapCase": false
150-
}
151-
}
152-
},
153-
"usageWithGrant": {
154-
"type": "boolean",
155-
"description": "Should the specified ROLE have USAGE privileges to the specified SCHEMA and the ability to GRANT the USAGE privilege to other ROLEs.\n",
156-
"language": {
157-
"python": {
158-
"mapCase": false
159-
}
160-
}
161-
}
162-
},
163-
"type": "object"
164-
},
165115
"postgresql:config/clientcert:clientcert": {
166116
"properties": {
167117
"cert": {
@@ -211,6 +161,56 @@
211161
"requiredOutputs": []
212162
}
213163
}
164+
},
165+
"postgresql:index/SchemaPolicy:SchemaPolicy": {
166+
"properties": {
167+
"create": {
168+
"type": "boolean",
169+
"description": "Should the specified ROLE have CREATE privileges to the specified SCHEMA.\n",
170+
"language": {
171+
"python": {
172+
"mapCase": false
173+
}
174+
}
175+
},
176+
"createWithGrant": {
177+
"type": "boolean",
178+
"description": "Should the specified ROLE have CREATE privileges to the specified SCHEMA and the ability to GRANT the CREATE privilege to other ROLEs.\n",
179+
"language": {
180+
"python": {
181+
"mapCase": false
182+
}
183+
}
184+
},
185+
"role": {
186+
"type": "string",
187+
"description": "The ROLE who is receiving the policy. If this value is empty or not specified it implies the policy is referring to the [`PUBLIC` role](https://www.postgresql.org/docs/current/static/sql-grant.html).\n",
188+
"language": {
189+
"python": {
190+
"mapCase": false
191+
}
192+
}
193+
},
194+
"usage": {
195+
"type": "boolean",
196+
"description": "Should the specified ROLE have USAGE privileges to the specified SCHEMA.\n",
197+
"language": {
198+
"python": {
199+
"mapCase": false
200+
}
201+
}
202+
},
203+
"usageWithGrant": {
204+
"type": "boolean",
205+
"description": "Should the specified ROLE have USAGE privileges to the specified SCHEMA and the ability to GRANT the USAGE privilege to other ROLEs.\n",
206+
"language": {
207+
"python": {
208+
"mapCase": false
209+
}
210+
}
211+
}
212+
},
213+
"type": "object"
214214
}
215215
},
216216
"provider": {
@@ -1128,7 +1128,7 @@
11281128
"policies": {
11291129
"type": "array",
11301130
"items": {
1131-
"$ref": "#/types/postgresql:/SchemaPolicy:SchemaPolicy"
1131+
"$ref": "#/types/postgresql:index/SchemaPolicy:SchemaPolicy"
11321132
},
11331133
"description": "Can be specified multiple times for each policy. Each\npolicy block supports fields documented below.\n"
11341134
}
@@ -1163,7 +1163,7 @@
11631163
"policies": {
11641164
"type": "array",
11651165
"items": {
1166-
"$ref": "#/types/postgresql:/SchemaPolicy:SchemaPolicy"
1166+
"$ref": "#/types/postgresql:index/SchemaPolicy:SchemaPolicy"
11671167
},
11681168
"description": "Can be specified multiple times for each policy. Each\npolicy block supports fields documented below.\n"
11691169
}
@@ -1194,7 +1194,7 @@
11941194
"policies": {
11951195
"type": "array",
11961196
"items": {
1197-
"$ref": "#/types/postgresql:/SchemaPolicy:SchemaPolicy"
1197+
"$ref": "#/types/postgresql:index/SchemaPolicy:SchemaPolicy"
11981198
},
11991199
"description": "Can be specified multiple times for each policy. Each\npolicy block supports fields documented below.\n"
12001200
}

provider/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.14
44

55
require (
66
github.com/hashicorp/terraform-plugin-sdk v1.7.0
7-
github.com/pulumi/pulumi-terraform-bridge/v2 v2.8.0
8-
github.com/pulumi/pulumi/sdk/v2 v2.10.0
7+
github.com/pulumi/pulumi-terraform-bridge/v2 v2.11.0
8+
github.com/pulumi/pulumi/sdk/v2 v2.12.0
99
github.com/terraform-providers/terraform-provider-postgresql v1.7.1
1010
)
1111

0 commit comments

Comments
 (0)