Skip to content

Commit bccdf53

Browse files
committed
Sets desiredcapacity instead of minsize and maxsize on ResizeInstanceGroup
1 parent c5941e2 commit bccdf53

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)