From 8a268deda69f7b48bce36249f7b286daa4d7d99b Mon Sep 17 00:00:00 2001 From: Aayush-Abhyarthi Date: Mon, 22 Dec 2025 13:43:52 +0530 Subject: [PATCH] add support for postgres version 18 --- solutions/fully-configurable/variables.tf | 2 +- solutions/security-enforced/variables.tf | 4 ++-- tests/pr_test.go | 2 +- variables.tf | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/solutions/fully-configurable/variables.tf b/solutions/fully-configurable/variables.tf index 128b89b8..842bf101 100644 --- a/solutions/fully-configurable/variables.tf +++ b/solutions/fully-configurable/variables.tf @@ -75,7 +75,7 @@ variable "existing_postgresql_instance_crn" { variable "postgresql_version" { description = "The version of the PostgreSQL instance. If no value is specified, the current preferred version of PostgreSQL is used." type = string - default = null + default = "18" } variable "remote_leader_crn" { diff --git a/solutions/security-enforced/variables.tf b/solutions/security-enforced/variables.tf index 5195cd85..09f89397 100644 --- a/solutions/security-enforced/variables.tf +++ b/solutions/security-enforced/variables.tf @@ -68,9 +68,9 @@ variable "existing_postgresql_instance_crn" { } variable "postgresql_version" { - description = "The version of the Databases for Redis instance." + description = "Version of the PostgreSQL instance. If no value is passed, the current preferred version of IBM Cloud Databases is used." type = string - default = null + default = "18" } variable "remote_leader_crn" { diff --git a/tests/pr_test.go b/tests/pr_test.go index 49255356..0cdaedc7 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -28,7 +28,7 @@ import ( const fscloudExampleTerraformDir = "examples/fscloud" const fullyConfigurableSolutionTerraformDir = "solutions/fully-configurable" const securityEnforcedSolutionTerraformDir = "solutions/security-enforced" -const latestVersion = "17" +const latestVersion = "18" // Use existing resource group const resourceGroup = "geretain-test-postgres" diff --git a/variables.tf b/variables.tf index 75f10d87..a7f231b7 100644 --- a/variables.tf +++ b/variables.tf @@ -20,13 +20,14 @@ variable "postgresql_version" { validation { condition = anytrue([ var.postgresql_version == null, + var.postgresql_version == "18", var.postgresql_version == "17", var.postgresql_version == "16", var.postgresql_version == "15", var.postgresql_version == "14", var.postgresql_version == "13", ]) - error_message = "Version must be 13, 14, 15, 16 or 17. If no value passed, the current ICD preferred version is used." + error_message = "Version must be 13, 14, 15, 16, 17 or 18. If no value passed, the current ICD preferred version is used." } }