We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed06981 + bccdf53 commit 1d2ccd3Copy full SHA for 1d2ccd3
staging/src/k8s.io/legacy-cloud-providers/aws/aws_instancegroups.go
@@ -35,8 +35,7 @@ var _ InstanceGroups = &Cloud{}
35
func ResizeInstanceGroup(asg ASG, instanceGroupName string, size int) error {
36
request := &autoscaling.UpdateAutoScalingGroupInput{
37
AutoScalingGroupName: aws.String(instanceGroupName),
38
- MinSize: aws.Int64(int64(size)),
39
- MaxSize: aws.Int64(int64(size)),
+ DesiredCapacity: aws.Int64(int64(size)),
40
}
41
if _, err := asg.UpdateAutoScalingGroup(request); err != nil {
42
return fmt.Errorf("error resizing AWS autoscaling group: %q", err)
0 commit comments