Is there an existing issue for this?
Greenfield/Brownfield provisioning
brownfield
Terraform Version
1.9.8
Module Version
11.6.0
AzureRM Provider Version
4.68.0
Affected Resource(s)/Data Source(s)
N/A
Terraform Configuration Files
Set `upgrade_settings.undrainable_node_behavior = null`
tfvars variables values
Debug Output/Panic Output
╷
│ Error: Invalid function argument
│
│ on .terraform/modules/aks/extra_node_pool.tf line 183, in resource "azurerm_kubernetes_cluster_node_pool" "node_pool_create_before_destroy":
│ 183: condition = each.value.upgrade_settings == null || try(each.value.upgrade_settings.undrainable_node_behavior, null) == null || contains(["Cordon", "Schedule"], try(each.value.upgrade_settings.undrainable_node_behavior, ""))
│ ├────────────────
│ │ while calling contains(list, value)
│ │ each.value.upgrade_settings.undrainable_node_behavior is null
│
│ Invalid value for "value" parameter: argument must not be null.
╵
Expected Behaviour
terraform plan succeeds
Actual Behaviour
Error above
Steps to Reproduce
Run terraform plan when upgrade_settings.undrainable_node_behavior = null
Important Factoids
No response
References
No response
Is there an existing issue for this?
Greenfield/Brownfield provisioning
brownfield
Terraform Version
1.9.8
Module Version
11.6.0
AzureRM Provider Version
4.68.0
Affected Resource(s)/Data Source(s)
N/A
Terraform Configuration Files
tfvars variables values
N/ADebug Output/Panic Output
Expected Behaviour
terraform plansucceedsActual Behaviour
Error above
Steps to Reproduce
Run
terraform planwhenupgrade_settings.undrainable_node_behavior = nullImportant Factoids
No response
References
No response