From 079ffae90b94d94df6b571f535e75b517a7ccbd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Rodrigues?= Date: Sat, 20 Jun 2026 15:23:46 +0100 Subject: [PATCH] fix(infra): remove double-dollar escape in Fluent Bit label_keys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In Terraform quoted strings $var is literal — only ${var} triggers interpolation. The $$ was passing through as literal $$kube_* to Fluent Bit, causing a record accessor syntax error on startup. Co-Authored-By: Claude Sonnet 4.6 --- infrastructure/terraform/monitoring.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/terraform/monitoring.tf b/infrastructure/terraform/monitoring.tf index 8978a25..57262dd 100644 --- a/infrastructure/terraform/monitoring.tf +++ b/infrastructure/terraform/monitoring.tf @@ -215,7 +215,7 @@ resource "helm_release" "fluent_bit" { # Static label keeps backward compat; dynamic labels let you filter # {namespace="finance"} or {app="api"} in Grafana/LogQL. " Labels job=fluent-bit\n", - " label_keys $$kube_namespace_name,$$kube_container_name\n", + " label_keys $kube_namespace_name,$kube_container_name\n", ]) } tolerations = [