Commit Graph

16 Commits

Author SHA1 Message Date
yznima 3f4851b228 aws: add nodegroup name to default labels 2022-12-08 00:45:50 -05:00
Austin Siu 06ca5c8993 Add testing for describing launch template data 2022-08-08 14:45:11 -05:00
Austin Siu 923fe205cd Consolidate DescribeLaunchTemplateVersions logic into one function 2022-08-08 14:45:11 -05:00
Austin Siu e0bd8f9cf1 Add instance type nil check 2022-08-08 14:45:11 -05:00
Austin Siu b79be36f7f Improve nil checking, some naming, replace json logic for requirement translation with field-setting 2022-08-08 14:45:11 -05:00
Austin Siu bfed0d6d6b Update and fix tests 2022-08-08 14:45:10 -05:00
Austin Siu 7ff7b5c34a Add support for LT Instance Requirements with no overrides in MIP 2022-08-08 14:45:10 -05:00
Austin Siu fed54b5715 Support attribute-based instance selection for AWS 2022-08-08 14:45:10 -05:00
Johannes Würbach 285500ed2c
feat(aws): reduce auto-discovery API calls 2022-07-21 17:11:18 +02:00
Shubham Kuchhal 4e79ff81f0 Fixed Typo in aws_wrapper.go 2022-06-07 12:56:38 +05:30
MyannaHarris b4cadfb4e2 [AWS EKS - Scale-to-0] Add Managed Nodegroup Cache
This change adds a Managed Nodegroup cache that will hold labels and taints from the AWS EKS DescribeNodegroup API output. It will be used to get more information for EKS managed nodegroups that are scaled to 0 nodes. Currently this code will only run when the managed nodegroup has 0 nodes and CAS doesn't have a node info object cached already.

Not included in this PR, but information for the future:

To make this used whenever the nodegroup is scaled to 0 nodes we'd have to make a change in the general CAS code [around here](10451c2032/cluster-autoscaler/processors/nodeinfosprovider/mixed_nodeinfos_processor.go (L114))
This general code change would be related to discussion in this old PR about node cache info: https://github.com/kubernetes/autoscaler/pull/4258
2022-04-04 00:51:58 -07:00
David Morrison 8ac87b3f34 early abort if we get a failed scaling activity event from AWS 2022-03-02 11:34:17 -08:00
MyannaHarris 06b4297581 [AWS EKS - Scale-to-0] Add EKS service and DescribeNodegroup API call
This change adds the AWS EKS service to the vendor service directory and adds the DescribeNodegroup API call to the AWSWrapper. This will be used for the AWS scale-to-0 project to get more information about empty managed nodegroups

Related proposal: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/proposals/circumvent-tag-limit-aws.md
2021-11-22 11:30:21 -08:00
David Morrison cf99f347c6 fix up some variable names and comments 2021-10-04 09:28:23 -07:00
David Morrison 27d96021a4 handle LT/LC cache misses 2021-09-22 21:38:26 -07:00
David Morrison 4999f05f3d cache ASG InstanceTypes for AWS 2021-09-22 15:17:26 -07:00