Skip to content

Commit

Permalink
fix bug in runtime chart
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Dec 30, 2023
1 parent 320a4bf commit 37ceb2e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/runtime/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: runtime
description: Sets up the basic dependencies needed to get a network stack running
type: application
version: 0.1.5
version: 0.1.6
appVersion: "0.1.0"
dependencies:
- name: external-dns
Expand Down
2 changes: 1 addition & 1 deletion charts/runtime/templates/operator-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
name: plural-operator
labels:
{{ include "bootstrap.labels" . | indent 4 }}
{{ include "runtime.labels" . | indent 4 }}
spec:
type: NodePort
ports:
Expand Down
2 changes: 1 addition & 1 deletion templates/setup/console.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ resource "helm_release" "console" {
data.local_sensitive_file.console
]

depends_on = [ null_resource.console, module.mgmt.cluster ]
depends_on = [ module.mgmt.cluster ]
}
4 changes: 3 additions & 1 deletion terraform/clouds/gcp/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module "gcp-network" {
}

resource "google_compute_global_address" "private_ip_alloc" {
count = var.create_db ? 1 : 0
name = var.allocated_range
purpose = "VPC_PEERING"
address_type = "INTERNAL"
Expand All @@ -38,7 +39,8 @@ resource "google_compute_global_address" "private_ip_alloc" {


resource "google_service_networking_connection" "postgres" {
count = var.create_db ? 1 : 0
network = module.gcp-network.network_id
service = "servicenetworking.googleapis.com"
reserved_peering_ranges = [google_compute_global_address.private_ip_alloc.name]
reserved_peering_ranges = [google_compute_global_address.private_ip_alloc[0].name]
}
2 changes: 1 addition & 1 deletion terraform/clouds/gcp/postgres.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module "pg" {
private_network = module.gcp-network.network_id
psc_enabled = false
require_ssl = false
allocated_ip_range = var.allocated_range
allocated_ip_range = google_compute_global_address.private_ip_alloc[0].name
ssl_mode = "ENCRYPTED_ONLY"
}

Expand Down
4 changes: 3 additions & 1 deletion test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module "gcp" {
source = "../terraform/clouds/gcp"
project_id = "pluralsh-test-384515"
cluster_name = "bootstrap-test"
network = "plrl-network"
subnetwork = "plrl-subnetwork"
runtime_values_file = "../helm-values/runtime.yaml"
deletion_protection = false
}
Expand Down Expand Up @@ -31,5 +33,5 @@ resource "helm_release" "console" {
data.local_sensitive_file.console.content
]

depends_on = [ null_resource.console, module.gcp.cluster ]
depends_on = [ module.gcp.cluster ]
}

0 comments on commit 37ceb2e

Please sign in to comment.