infra/stacks/reloader/main.tf
Viktor Barzin c7c7047f1c [ci skip] Flatten module wrappers into stack roots
Remove the module "xxx" { source = "./module" } indirection layer
from all 66 service stacks. Resources are now defined directly in
each stack's main.tf instead of through a wrapper module.

- Merge module/main.tf contents into stack main.tf
- Apply variable replacements (var.tier -> local.tiers.X, renamed vars)
- Fix shared module paths (one fewer ../ at each level)
- Move extra files/dirs (factory/, chart_values, subdirs) to stack root
- Update state files to strip module.<name>. prefix
- Update CLAUDE.md to reflect flat structure

Verified: terragrunt plan shows 0 add, 0 destroy across all stacks.
2026-02-22 15:13:55 +00:00

27 lines
559 B
HCL

locals {
tiers = {
core = "0-core"
cluster = "1-cluster"
gpu = "2-gpu"
edge = "3-edge"
aux = "4-aux"
}
}
resource "kubernetes_namespace" "crowdsec" {
metadata {
name = "reloader"
labels = {
tier = local.tiers.aux
}
}
}
resource "helm_release" "reloader" {
namespace = kubernetes_namespace.crowdsec.metadata[0].name
create_namespace = false
name = "reloader"
atomic = true
repository = "https://stakater.github.io/stakater-charts"
chart = "reloader"
}