From 91a780d94f56330ab5dcee2c384d7590dfd164b3 Mon Sep 17 00:00:00 2001 From: Steffen Wagner Date: Thu, 12 Mar 2020 17:26:49 +0100 Subject: [PATCH] Potential fix for #6020 If autoscaling is disabled on default_node_pool, those values are set to `0` --- azurerm/internal/services/containers/kubernetes_nodepool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azurerm/internal/services/containers/kubernetes_nodepool.go b/azurerm/internal/services/containers/kubernetes_nodepool.go index 13a22c02e33a..503f81e11fdc 100644 --- a/azurerm/internal/services/containers/kubernetes_nodepool.go +++ b/azurerm/internal/services/containers/kubernetes_nodepool.go @@ -68,7 +68,7 @@ func SchemaDefaultNodePool() *schema.Schema { "max_count": { Type: schema.TypeInt, Optional: true, - ValidateFunc: validation.IntBetween(1, 100), + ValidateFunc: validation.IntBetween(0, 100), }, "max_pods": { @@ -81,7 +81,7 @@ func SchemaDefaultNodePool() *schema.Schema { "min_count": { Type: schema.TypeInt, Optional: true, - ValidateFunc: validation.IntBetween(1, 100), + ValidateFunc: validation.IntBetween(0, 100), }, "node_count": {