Gonçalo Rodrigues a7ba0a9dd6 refactor(infra): gate Gitea and act-runner behind var.enable_gitea
All Gitea and runner resources use count = var.enable_gitea ? 1 : 0
(or for_each with an empty set when false). The gitea namespace is
conditionally included. Default is false.

To enable: terraform apply -var enable_gitea=true

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 16:14:57 +01:00

15 lines
273 B
HCL

locals {
namespaces = concat(
["auth", "home", "finance", "test", "monitoring", "infrastructure"],
var.enable_gitea ? ["gitea"] : []
)
}
resource "kubernetes_namespace" "domains" {
for_each = toset(local.namespaces)
metadata {
name = each.value
}
}