Skip to content

Commit 6fb705e

Browse files
feat: support for Postgres 15 (#278)
1 parent f10be9a commit 6fb705e

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed

module-metadata.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"pos": {
1414
"filename": "variables.tf",
15-
"line": 104
15+
"line": 105
1616
},
1717
"min_length": 1,
1818
"max_length": 128,
@@ -32,7 +32,7 @@
3232
],
3333
"pos": {
3434
"filename": "variables.tf",
35-
"line": 135
35+
"line": 136
3636
}
3737
},
3838
"auto_scaling": {
@@ -41,7 +41,7 @@
4141
"description": "Optional rules to allow the database to increase resources in response to usage. Only a single autoscaling block is allowed. Make sure you understand the effects of autoscaling, especially for production environments. See https://ibm.biz/autoscaling-considerations in the IBM Cloud Docs.",
4242
"pos": {
4343
"filename": "variables.tf",
44-
"line": 158
44+
"line": 159
4545
}
4646
},
4747
"backup_crn": {
@@ -53,7 +53,7 @@
5353
],
5454
"pos": {
5555
"filename": "variables.tf",
56-
"line": 255
56+
"line": 256
5757
}
5858
},
5959
"backup_encryption_key_crn": {
@@ -62,7 +62,7 @@
6262
"description": "The CRN of a Key Protect key that you want to use for encrypting the disk that holds deployment backups. Only used if var.kms_encryption_enabled is set to true. BYOK for backups is available only in US regions us-south and us-east, and in eu-de. Only keys in the us-south and eu-de are durable to region failures. To ensure that your backups are available even if a region failure occurs, use a key from us-south or eu-de. Hyper Protect Crypto Services for IBM Cloud Databases backups is not currently supported. If no value is passed here, the value passed for the 'kms_key_crn' variable is used. And if a HPCS value is passed for var.kms_key_crn, the database backup encryption uses the default encryption keys.",
6363
"pos": {
6464
"filename": "variables.tf",
65-
"line": 209
65+
"line": 210
6666
}
6767
},
6868
"cbr_rules": {
@@ -79,7 +79,7 @@
7979
],
8080
"pos": {
8181
"filename": "variables.tf",
82-
"line": 235
82+
"line": 236
8383
}
8484
},
8585
"configuration": {
@@ -91,7 +91,7 @@
9191
],
9292
"pos": {
9393
"filename": "variables.tf",
94-
"line": 117
94+
"line": 118
9595
}
9696
},
9797
"existing_kms_instance_guid": {
@@ -103,7 +103,7 @@
103103
],
104104
"pos": {
105105
"filename": "variables.tf",
106-
"line": 225
106+
"line": 226
107107
},
108108
"immutable": true,
109109
"computed": true
@@ -118,7 +118,7 @@
118118
],
119119
"pos": {
120120
"filename": "variables.tf",
121-
"line": 189
121+
"line": 190
122122
}
123123
},
124124
"kms_key_crn": {
@@ -130,7 +130,7 @@
130130
],
131131
"pos": {
132132
"filename": "variables.tf",
133-
"line": 195
133+
"line": 196
134134
},
135135
"immutable": true
136136
},
@@ -141,7 +141,7 @@
141141
"default": 0,
142142
"pos": {
143143
"filename": "variables.tf",
144-
"line": 63
144+
"line": 64
145145
}
146146
},
147147
"member_disk_mb": {
@@ -151,7 +151,7 @@
151151
"default": 5120,
152152
"pos": {
153153
"filename": "variables.tf",
154-
"line": 56
154+
"line": 57
155155
}
156156
},
157157
"member_memory_mb": {
@@ -161,7 +161,7 @@
161161
"default": 1024,
162162
"pos": {
163163
"filename": "variables.tf",
164-
"line": 49
164+
"line": 50
165165
}
166166
},
167167
"members": {
@@ -171,7 +171,7 @@
171171
"default": 2,
172172
"pos": {
173173
"filename": "variables.tf",
174-
"line": 81
174+
"line": 82
175175
}
176176
},
177177
"name": {
@@ -210,7 +210,7 @@
210210
],
211211
"pos": {
212212
"filename": "variables.tf",
213-
"line": 272
213+
"line": 273
214214
}
215215
},
216216
"pitr_time": {
@@ -222,7 +222,7 @@
222222
],
223223
"pos": {
224224
"filename": "variables.tf",
225-
"line": 278
225+
"line": 279
226226
}
227227
},
228228
"plan_validation": {
@@ -249,7 +249,7 @@
249249
],
250250
"pos": {
251251
"filename": "variables.tf",
252-
"line": 43
252+
"line": 44
253253
},
254254
"cloud_data_type": "region"
255255
},
@@ -296,7 +296,7 @@
296296
],
297297
"pos": {
298298
"filename": "variables.tf",
299-
"line": 98
299+
"line": 99
300300
},
301301
"min_length": 1,
302302
"max_length": 128,
@@ -316,7 +316,7 @@
316316
],
317317
"pos": {
318318
"filename": "variables.tf",
319-
"line": 70
319+
"line": 71
320320
}
321321
},
322322
"service_endpoints": {
@@ -331,7 +331,7 @@
331331
],
332332
"pos": {
333333
"filename": "variables.tf",
334-
"line": 88
334+
"line": 89
335335
},
336336
"options": "public, private, public-and-private"
337337
},
@@ -342,7 +342,7 @@
342342
"default": false,
343343
"pos": {
344344
"filename": "variables.tf",
345-
"line": 219
345+
"line": 220
346346
}
347347
},
348348
"users": {
@@ -358,7 +358,7 @@
358358
],
359359
"pos": {
360360
"filename": "variables.tf",
361-
"line": 142
361+
"line": 143
362362
}
363363
}
364364
},

tests/pr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestRunFSCloudExample(t *testing.T) {
5656
"access_tags": permanentResources["accessTags"],
5757
"existing_kms_instance_guid": permanentResources["hpcs_south"],
5858
"kms_key_crn": permanentResources["hpcs_south_root_key_crn"],
59-
"pg_version": "14", // Always lock this test into the latest supported Postgres version
59+
"pg_version": "15", // Always lock this test into the latest supported Postgres version
6060
},
6161
})
6262
options.SkipTestTearDown = true

variables.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ variable "pg_version" {
3131
validation {
3232
condition = anytrue([
3333
var.pg_version == null,
34+
var.pg_version == "15",
3435
var.pg_version == "14",
3536
var.pg_version == "13",
3637
var.pg_version == "12",
3738
var.pg_version == "11"
3839
])
39-
error_message = "Version must be 11 or 12 or 13 or 14. If no value passed, the current ICD preferred version is used."
40+
error_message = "Version must be 11, 12, 13, 14 or 15. If no value passed, the current ICD preferred version is used."
4041
}
4142
}
4243

0 commit comments

Comments
 (0)