Skip to content

Commit 2aaf510

Browse files
committed
fix(aks): add merge() to avoid null value that breaks values generation
1 parent 6c7e60b commit 2aaf510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aks/locals.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ locals {
1616

1717
helm_values = [{
1818
kube-prometheus-stack = {
19-
prometheus = local.use_managed_identity ? {
19+
prometheus = merge(local.use_managed_identity ? {
2020
serviceAccount = {
2121
annotations = {
2222
"azure.workload.identity/client-id" = resource.azurerm_user_assigned_identity.prometheus[0].client_id
@@ -29,7 +29,7 @@ locals {
2929
}
3030
}
3131
}
32-
} : null
32+
} : null, {})
3333
}
3434
}]
3535
}

0 commit comments

Comments
 (0)