Commit Graph

9 Commits

Author SHA1 Message Date
Shatil Rafiullah a36f8007af Read AWS Region from EC2 Metadata
Tackles kubernetes/autoscaler#1208. EC2 Metadata helpfully supplies AWS
Region info, so rather than _requiring_ an environment variable, this
patch enables `aws_manager.go` to retrieve that information from EC2
itself.

Example YAMLs no longer reference the vestigial `AWS_REGION` environment
variable, but supplying it to `cluster-autoscaler` still relays it to
the AWS SDK like before.
2018-09-28 22:45:34 -07:00
Sheldon Kwok b942eec809 Add test for building aws asg instance type with launch templates 2018-07-17 02:54:35 -07:00
Lee Briggs 5b023650b9 Validate taint key with regex (#1005)
* Validate taint key with regex

Before attempting to perform a split on the tag value, validate it
matches the format <tag>:NoSchedule

This should prevent invalid tag keys from causing the autoscaler to
panic and crash

* Further taint validation

Also add test cases for valid taint methods
2018-06-28 11:46:20 +02:00
Johannes Würbach 0598749d76
AWS: Reduce amount of API calls
Instead of doing auto-discovery, nodes per ASG and target size per ASG separately, fetch all
of those ASG details in a single request on each Refresh() with maximum 10 seconds granularity.
2018-05-21 10:31:03 +02:00
Aleksandra Malinowska e93e25dc71 Disable flaky AWS test 2018-04-06 14:05:23 +02:00
Nic Cope e96ff07896 Replace the Polling Autoscaler
Node group discovery is now handled by cloudprovider.Refresh() in all cases.
Additionally, explicit node groups can now be used alongside autodiscovery.
2017-12-11 13:09:56 -08:00
mmerrill3 77aa30a5c1 Fixing for issue 252 by implementing a channel to stop the go routine 2017-11-01 11:00:00 -04:00
Seth Pollack e855c7f698
add tests 2017-07-21 08:42:09 -04:00
Seth Pollack 314ed88b14
Enable min size 0 in aws 2017-07-10 09:04:18 -04:00