Skip to content

Commit

Permalink
azurerm_kubernetes_cluster_node_pool - fix `windows_profile.outboun…
Browse files Browse the repository at this point in the history
…d_nat_enabled` plan-diff
  • Loading branch information
ms-henglu committed Apr 17, 2024
1 parent 4b4f01c commit dd5a2e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ func expandAgentPoolWindowsProfile(input []interface{}) *agentpools.AgentPoolWin
}

func flattenAgentPoolWindowsProfile(input *agentpools.AgentPoolWindowsProfile) []interface{} {
if input == nil {
if input == nil || input.DisableOutboundNat == nil {
return []interface{}{}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2110,9 +2110,6 @@ resource "azurerm_kubernetes_cluster_node_pool" "test" {
vm_size = "Standard_DS2_v2"
node_count = 1
os_type = "Windows"
windows_profile {
outbound_nat_enabled = true
}
tags = {
Os = "Windows"
}
Expand All @@ -2135,9 +2132,6 @@ resource "azurerm_kubernetes_cluster_node_pool" "test" {
node_count = 1
os_type = "Windows"
os_sku = "Windows2019"
windows_profile {
outbound_nat_enabled = true
}
tags = {
Os = "Windows"
}
Expand All @@ -2160,9 +2154,6 @@ resource "azurerm_kubernetes_cluster_node_pool" "test" {
node_count = 1
os_type = "Windows"
os_sku = "Windows2022"
windows_profile {
outbound_nat_enabled = true
}
tags = {
Os = "Windows"
}
Expand Down Expand Up @@ -2191,9 +2182,6 @@ resource "azurerm_kubernetes_cluster_node_pool" "windows" {
vm_size = "Standard_DS2_v2"
node_count = 1
os_type = "Windows"
windows_profile {
outbound_nat_enabled = true
}
}
`, r.templateWindowsConfig(data))
}
Expand Down

0 comments on commit dd5a2e8

Please sign in to comment.