@@ -100,7 +100,7 @@ type AgentPoolSpec struct {
100100 NodeTaints []string `json:"nodeTaints,omitempty"`
101101
102102 // EnableAutoScaling - Whether to enable auto-scaler
103- EnableAutoScaling * bool `json:"enableAutoScaling,omitempty"`
103+ EnableAutoScaling bool `json:"enableAutoScaling,omitempty"`
104104
105105 // AvailabilityZones represents the Availability zones for nodes in the AgentPool.
106106 AvailabilityZones []string
@@ -202,7 +202,7 @@ func (s *AgentPoolSpec) Parameters(ctx context.Context, existing interface{}) (p
202202 Count : & s .Replicas ,
203203 OrchestratorVersion : s .Version ,
204204 Mode : containerservice .AgentPoolMode (s .Mode ),
205- EnableAutoScaling : s .EnableAutoScaling ,
205+ EnableAutoScaling : pointer . Bool ( s .EnableAutoScaling ) ,
206206 MinCount : s .MinCount ,
207207 MaxCount : s .MaxCount ,
208208 NodeLabels : s .NodeLabels ,
@@ -233,7 +233,7 @@ func (s *AgentPoolSpec) Parameters(ctx context.Context, existing interface{}) (p
233233 // When autoscaling is set, the count of the nodes differ based on the autoscaler and should not depend on the
234234 // count present in MachinePool or AzureManagedMachinePool, hence we should not make an update API call based
235235 // on difference in count.
236- if pointer . BoolDeref ( s .EnableAutoScaling , false ) {
236+ if s .EnableAutoScaling {
237237 normalizedProfile .Count = existingProfile .Count
238238 }
239239
@@ -339,7 +339,7 @@ func (s *AgentPoolSpec) Parameters(ctx context.Context, existing interface{}) (p
339339 ManagedClusterAgentPoolProfileProperties : & containerservice.ManagedClusterAgentPoolProfileProperties {
340340 AvailabilityZones : availabilityZones ,
341341 Count : & s .Replicas ,
342- EnableAutoScaling : s .EnableAutoScaling ,
342+ EnableAutoScaling : pointer . Bool ( s .EnableAutoScaling ) ,
343343 EnableUltraSSD : s .EnableUltraSSD ,
344344 KubeletConfig : kubeletConfig ,
345345 KubeletDiskType : containerservice .KubeletDiskType (pointer .StringDeref ((* string )(s .KubeletDiskType ), "" )),
0 commit comments