diff --git a/stacks/platform/main.tf b/stacks/platform/main.tf index 0389adaa..845b149e 100644 --- a/stacks/platform/main.tf +++ b/stacks/platform/main.tf @@ -3,7 +3,7 @@ locals { resolved_agent_state_image_tag = trimspace(var.agent_state_image_tag) != "" ? var.agent_state_image_tag : format("v%s", var.agent_state_chart_version) resolved_agents_orchestrator_image_tag = trimspace(var.agents_orchestrator_image_tag) != "" ? var.agents_orchestrator_image_tag : var.agents_orchestrator_chart_version resolved_k8s_runner_image_tag = trimspace(var.k8s_runner_image_tag) != "" ? var.k8s_runner_image_tag : var.k8s_runner_chart_version - resolved_threads_image_tag = trimspace(var.threads_image_tag) != "" ? var.threads_image_tag : format("v%s", var.threads_chart_version) + resolved_threads_image_tag = trimspace(var.threads_image_tag) != "" ? var.threads_image_tag : var.threads_chart_version resolved_tracing_image_tag = trimspace(var.tracing_image_tag) != "" ? var.tracing_image_tag : format("v%s", var.tracing_chart_version) resolved_chat_image_tag = trimspace(var.chat_image_tag) != "" ? var.chat_image_tag : var.chat_chart_version resolved_chat_app_image_tag = trimspace(var.chat_app_image_tag) != "" ? var.chat_app_image_tag : var.chat_app_chart_version @@ -863,14 +863,21 @@ locals { replicaCount = 1 fullnameOverride = "threads" service = { - port = 50051 - } - database = { - url = format("postgresql://threads:%s@threads-db:5432/threads?sslmode=disable", var.threads_db_password) - } - notifications = { - address = "notifications:50051" + ports = [ + { + name = "grpc" + port = 50051 + targetPort = "grpc" + protocol = "TCP" + } + ] } + extraEnvVars = [ + { + name = "DATABASE_URL" + value = format("postgresql://threads:%s@threads-db:5432/threads?sslmode=disable", var.threads_db_password) + }, + ] image = { repository = "ghcr.io/agynio/threads" tag = local.resolved_threads_image_tag diff --git a/stacks/platform/variables.tf b/stacks/platform/variables.tf index 02e1777e..3cf5dd72 100644 --- a/stacks/platform/variables.tf +++ b/stacks/platform/variables.tf @@ -44,7 +44,7 @@ variable "k8s_runner_chart_version" { variable "threads_chart_version" { type = string description = "Version of the threads Helm chart published to GHCR" - default = "0.1.1" + default = "0.3.2" } variable "tracing_chart_version" { @@ -189,7 +189,7 @@ variable "k8s_runner_image_tag" { variable "threads_image_tag" { type = string description = "Optional override for the threads image tag" - default = "v0.1.2" + default = "" } variable "tracing_image_tag" {