Skip to content

Commit

Permalink
fix(swr): add missing env var
Browse files Browse the repository at this point in the history
  • Loading branch information
hugotiburtino committed Feb 10, 2024
1 parent 5453826 commit 094c53f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/api/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ module "swr_queue_worker" {
mailchimp_api = var.mailchimp_api
serlo_org_database_layer_host = module.database_layer.host
concurrency = var.swr_queue_worker.concurrency
serlo_org_database_url = var.database_layer.database_url
}

module "api_db_migration" {
Expand Down
10 changes: 9 additions & 1 deletion modules/api/swr-queue-worker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,14 @@ variable "serlo_org_database_layer_host" {
type = string
}

variable "serlo_org_database_url" {
type = string
}

variable "concurrency" {
description = "Number of parallel requests"
type = number
}

resource "kubernetes_service" "server" {
metadata {
name = local.name
Expand Down Expand Up @@ -237,6 +240,11 @@ resource "kubernetes_deployment" "server" {
value = var.secrets.serlo_org
}

env {
name = "MYSQL_URI"
value = var.serlo_org_database_url
}

env {
name = "SWR_QUEUE_WORKER_CONCURRENCY"
value = var.concurrency
Expand Down

0 comments on commit 094c53f

Please sign in to comment.