From 426a4a5e67a0cba8b5b6f074d9aab4d10e967afc Mon Sep 17 00:00:00 2001 From: Michal Jura Date: Mon, 31 May 2021 11:51:08 +0200 Subject: [PATCH] Fix autoscaling for nodedools Fix enabling autoscaling for nodepools after AKS cluster was provisioned --- internal/aks/create.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/aks/create.go b/internal/aks/create.go index dd543faa..abafb830 100644 --- a/internal/aks/create.go +++ b/internal/aks/create.go @@ -178,7 +178,11 @@ func CreateOrUpdateAgentPool(ctx context.Context, agentPoolClient *containerserv OsType: containerservice.OSType(np.OsType), VMSize: containerservice.VMSizeTypes(np.VMSize), Mode: containerservice.AgentPoolMode(np.Mode), + Type: containerservice.VirtualMachineScaleSets, OrchestratorVersion: np.OrchestratorVersion, + EnableAutoScaling: np.EnableAutoScaling, + MinCount: np.MinCount, + MaxCount: np.MaxCount, } _, err := agentPoolClient.CreateOrUpdate(ctx, spec.ResourceGroup, spec.ClusterName, to.String(np.Name), containerservice.AgentPool{