Skip to content

Commit a0708d5

Browse files
authored
Merge pull request #427 from cloudfoundry/recreate_wg_ci_test
Move wg-ci-test to us-east1 and update Postgres version to 16
2 parents 6e65799 + 5752dfc commit a0708d5

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

terraform-modules/concourse/infra/database.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "google_sql_database_instance" "concourse" {
2-
database_version = "POSTGRES_13"
2+
database_version = var.database_version
33
name = var.sql_instance_name
44
project = var.project
55
region = var.region
@@ -33,6 +33,8 @@ resource "google_sql_database_instance" "concourse" {
3333
disk_size = var.sql_instance_disk_size
3434
disk_type = "PD_SSD"
3535

36+
edition = "ENTERPRISE"
37+
3638
ip_configuration {
3739
ipv4_enabled = "true"
3840
}

terraform-modules/concourse/infra/variables.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ variable "zone" {
1616
nullable = false
1717
}
1818

19-
19+
variable "database_version" {
20+
nullable = false
21+
default = "POSTGRES_13"
22+
}
2023
variable "sql_instance_name" { nullable = false }
2124
variable "sql_instance_secondary_zone" { nullable = false }
2225
variable "sql_instance_backup_location" { nullable = false }

terragrunt/concourse-wg-ci-test/config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project: app-runtime-interfaces-wg
2-
region: europe-west3
3-
zone: europe-west3-a
4-
secondary_zone: europe-west3-b
2+
region: us-east1
3+
zone: us-east1-b
4+
secondary_zone: us-east1-c
55

66
# gcs_prefix builds root folder for tf state for the entire stack
77
gcs_bucket: terraform-wg-ci-test
@@ -27,7 +27,6 @@ concourse_container_placement_strategy: "volume-locality"
2727
# Concourse helm chart
2828
concourse_helm_version: "18.1.1"
2929

30-
3130
# Module sources for the stack - git or local
3231
# ie.
3332
# infra: "[email protected]:cloudfoundry/app-runtime-interfaces-infrastructure.git//terraform-modules/concourse/infra?ref=1.0.0"
@@ -60,12 +59,13 @@ fly_target: ari-test
6059
# In most cases settings below are safe to keep as defaults
6160
# ---------------------------------------------------------
6261
# SQL
62+
database_version: "POSTGRES_16"
6363
sql_instance_tier: db-custom-1-4096
6464
sql_instance_backup_location: eu
6565
sql_instance_disk_size: 38
6666

6767
# Other GKE vars
68-
gke_controlplane_version: 1.23.8-gke.1900
68+
gke_controlplane_version: 1.31
6969
gke_cluster_ipv4_cidr: 10.104.0.0/14
7070
gke_services_ipv4_cidr_block: 10.108.0.0/20
7171
gke_master_ipv4_cidr_block: 172.16.0.32/28

terragrunt/concourse-wg-ci-test/infra/terragrunt.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ inputs = {
5050

5151
gke_http_load_balancing_disabled = local.config.gke_http_load_balancing_disabled
5252

53+
database_version = local.config.database_version
5354
sql_instance_name = "${local.config.gke_name}-concourse"
5455
sql_instance_tier = local.config.sql_instance_tier
5556
sql_instance_disk_size = local.config.sql_instance_disk_size

0 commit comments

Comments
 (0)