From 2aaf5108456e9540aac99b6fc70a398136c14818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Heleno?= Date: Thu, 31 Oct 2024 11:48:00 +0100 Subject: [PATCH] fix(aks): add merge() to avoid null value that breaks values generation --- aks/locals.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aks/locals.tf b/aks/locals.tf index 7d26e85d..4f212078 100644 --- a/aks/locals.tf +++ b/aks/locals.tf @@ -16,7 +16,7 @@ locals { helm_values = [{ kube-prometheus-stack = { - prometheus = local.use_managed_identity ? { + prometheus = merge(local.use_managed_identity ? { serviceAccount = { annotations = { "azure.workload.identity/client-id" = resource.azurerm_user_assigned_identity.prometheus[0].client_id @@ -29,7 +29,7 @@ locals { } } } - } : null + } : null, {}) } }] }