Skip to content

Commit

Permalink
AKS: Fix default nodepool upgrade settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Caio Venturini Braga committed Oct 2, 2024
1 parent cf4f9d3 commit ec51ee3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/compute/aks/aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ resource "azurerm_kubernetes_cluster" "aks" {
dynamic "upgrade_settings" {
for_each = try(var.settings.default_node_pool.upgrade_settings, null) == null ? [] : [1]
content {
max_surge = upgrade_settings.value.max_surge
drain_timeout_in_minutes = try(var.settings.default_node_pool.upgrade_settings.drain_timeout_in_minutes, null)
node_soak_duration_in_minutes = try(var.settings.default_node_pool.upgrade_settings.node_soak_duration_in_minutes, null)
max_surge = var.settings.default_node_pool.upgrade_settings.max_surge
}
}

Expand Down

0 comments on commit ec51ee3

Please sign in to comment.