Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions stacks/platform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions stacks/platform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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" {
Expand Down
Loading