Skip to content

Commit 1d2ccd3

Browse files
authored
Merge pull request kubernetes#92549 from ellistarn/asg-resize
Sets desiredcapacity instead of minsize and maxsize on ResizeInstanceGroup
2 parents ed06981 + bccdf53 commit 1d2ccd3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

staging/src/k8s.io/legacy-cloud-providers/aws/aws_instancegroups.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ var _ InstanceGroups = &Cloud{}
3535
func ResizeInstanceGroup(asg ASG, instanceGroupName string, size int) error {
3636
request := &autoscaling.UpdateAutoScalingGroupInput{
3737
AutoScalingGroupName: aws.String(instanceGroupName),
38-
MinSize: aws.Int64(int64(size)),
39-
MaxSize: aws.Int64(int64(size)),
38+
DesiredCapacity: aws.Int64(int64(size)),
4039
}
4140
if _, err := asg.UpdateAutoScalingGroup(request); err != nil {
4241
return fmt.Errorf("error resizing AWS autoscaling group: %q", err)

0 commit comments

Comments
 (0)