Skip to content

Commit

Permalink
Update node pool size even if autoscaling is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kahun committed Mar 12, 2024
1 parent b1f3dff commit a5d8f2b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cloud/services/container/nodepools/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,6 @@ func (s *Service) checkDiffAndPrepareUpdateAutoscaling(existingNodePool *contain

func (s *Service) checkDiffAndPrepareUpdateSize(existingNodePool *containerpb.NodePool) (bool, *containerpb.SetNodePoolSizeRequest) {
needUpdate := false
desiredAutoscaling := infrav1exp.ConvertToSdkAutoscaling(s.scope.GCPManagedMachinePool.Spec.Scaling)

if desiredAutoscaling.Enabled {
// Do not update node pool size if autoscaling is enabled.
return false, nil
}

setNodePoolSizeRequest := containerpb.SetNodePoolSizeRequest{
Name: s.scope.NodePoolFullName(),
Expand Down

0 comments on commit a5d8f2b

Please sign in to comment.