Skip to content

Commit

Permalink
fix(aks): add merge() to avoid null value that breaks values generation
Browse files Browse the repository at this point in the history
  • Loading branch information
lentidas committed Oct 31, 2024
1 parent 6c7e60b commit 2aaf510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aks/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,7 +29,7 @@ locals {
}
}
}
} : null
} : null, {})
}
}]
}

0 comments on commit 2aaf510

Please sign in to comment.