Skip to content

Commit a5d8f2b

Browse files
committed
Update node pool size even if autoscaling is enabled
1 parent b1f3dff commit a5d8f2b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cloud/services/container/nodepools/reconcile.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,6 @@ func (s *Service) checkDiffAndPrepareUpdateAutoscaling(existingNodePool *contain
430430

431431
func (s *Service) checkDiffAndPrepareUpdateSize(existingNodePool *containerpb.NodePool) (bool, *containerpb.SetNodePoolSizeRequest) {
432432
needUpdate := false
433-
desiredAutoscaling := infrav1exp.ConvertToSdkAutoscaling(s.scope.GCPManagedMachinePool.Spec.Scaling)
434-
435-
if desiredAutoscaling.Enabled {
436-
// Do not update node pool size if autoscaling is enabled.
437-
return false, nil
438-
}
439433

440434
setNodePoolSizeRequest := containerpb.SetNodePoolSizeRequest{
441435
Name: s.scope.NodePoolFullName(),

0 commit comments

Comments
 (0)