From b7faaf63c4e1d5ce6a9c04d005baab6863e66282 Mon Sep 17 00:00:00 2001 From: hezijie Date: Tue, 20 Feb 2024 10:47:49 +0800 Subject: [PATCH] remove precondition which prevent using windows pool with overlay since the feature is now GA --- extra_node_pool.tf | 8 -------- 1 file changed, 8 deletions(-) diff --git a/extra_node_pool.tf b/extra_node_pool.tf index 435eee58..9d86f01e 100644 --- a/extra_node_pool.tf +++ b/extra_node_pool.tf @@ -150,10 +150,6 @@ resource "azurerm_kubernetes_cluster_node_pool" "node_pool_create_before_destroy condition = can(regex("[a-z0-9]{1,8}", each.value.name)) error_message = "A Node Pools name must consist of alphanumeric characters and have a maximum lenght of 8 characters (4 random chars added)" } - precondition { - condition = var.network_plugin_mode != "overlay" || each.value.os_type != "Windows" - error_message = "Windows Server 2019 node pools are not supported for Overlay and Windows support is still in preview" - } precondition { condition = var.network_plugin_mode != "overlay" || !can(regex("^Standard_DC[0-9]+s?_v2$", each.value.vm_size)) error_message = "With with Azure CNI Overlay you can't use DCsv2-series virtual machines in node pools. " @@ -304,10 +300,6 @@ resource "azurerm_kubernetes_cluster_node_pool" "node_pool_create_after_destroy" condition = can(regex("[a-z0-9]{1,8}", each.value.name)) error_message = "A Node Pools name must consist of alphanumeric characters and have a maximum lenght of 8 characters (4 random chars added)" } - precondition { - condition = var.network_plugin_mode != "overlay" || each.value.os_type != "Windows" - error_message = "Windows Server 2019 node pools are not supported for Overlay and Windows support is still in preview" - } precondition { condition = var.network_plugin_mode != "overlay" || !can(regex("^Standard_DC[0-9]+s?_v2$", each.value.vm_size)) error_message = "With with Azure CNI Overlay you can't use DCsv2-series virtual machines in node pools. "