Skip to content

Commit

Permalink
chore!: remove shared pg (#219)
Browse files Browse the repository at this point in the history
* chore!: remove shared pg

* chore: cleanup more config
  • Loading branch information
krtk6160 authored Sep 16, 2024
1 parent 8040dae commit 90a56ac
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 116 deletions.
5 changes: 0 additions & 5 deletions examples/gcp/platform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ variable "node_default_machine_type" {
variable "letsencrypt_issuer_email" {
default = "[email protected]"
}
variable "destroyable_postgres" {
default = false
}
variable "destroyable_cluster" {
default = false
}
Expand All @@ -23,8 +20,6 @@ module "platform" {
node_service_account = var.node_service_account
node_default_machine_type = var.node_default_machine_type
destroyable_cluster = var.destroyable_cluster
destroyable_postgres = var.destroyable_postgres
deploy_shared_pg = false
}

output "cluster_endpoint" {
Expand Down
12 changes: 0 additions & 12 deletions modules/platform/gcp/cloud-sql.tf

This file was deleted.

70 changes: 0 additions & 70 deletions modules/platform/gcp/cloud-sql/main.tf

This file was deleted.

21 changes: 0 additions & 21 deletions modules/platform/gcp/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,3 @@ output "lnd1_internal_ip" {
output "lnd2_internal_ip" {
value = local.deploy_lnd_ips ? google_compute_address.lnd2_internal_ip[0].address : ""
}

output "shared_pg_host" {
value = local.deploy_shared_pg ? module.shared_pg.0.private_ip : ""
}

output "shared_pg_admin_username" {
value = local.deploy_shared_pg ? module.shared_pg.0.admin_username : ""
}

output "shared_pg_admin_password" {
value = local.deploy_shared_pg ? module.shared_pg.0.admin_password : ""
sensitive = true
}

output "shared_pg_instance_name" {
value = local.deploy_shared_pg ? module.shared_pg.0.instance_name : ""
}

output "shared_pg_connection_name" {
value = local.deploy_shared_pg ? module.shared_pg.0.connection_name : ""
}
8 changes: 0 additions & 8 deletions modules/platform/gcp/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,9 @@ variable "destroyable_cluster" {
variable "postgres_tier" {
default = "db-f1-micro"
}
variable "destroyable_postgres" {
default = false
}
variable "pg_ha" {
default = false
}
variable "deploy_shared_pg" {
default = true
}
variable "node_service_account" {}
variable "min_default_node_count" {
default = 1
Expand Down Expand Up @@ -58,8 +52,6 @@ locals {
max_default_node_count = var.max_default_node_count
cluster_location = var.cluster_zone == "" ? local.region : "${local.region}-${var.cluster_zone}"
postgres_tier = var.postgres_tier
destroyable_postgres = var.destroyable_postgres
pg_ha = var.pg_ha
deploy_shared_pg = var.deploy_shared_pg
deploy_lnd_ips = var.deploy_lnd_ips
}

0 comments on commit 90a56ac

Please sign in to comment.