Commit Graph

6 Commits

Author SHA1 Message Date
Eng Zer Jun 66805969de
test: use `T.Setenv` to set env vars in tests
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-08-18 21:28:18 +08:00
Johannes Würbach 285500ed2c
feat(aws): reduce auto-discovery API calls 2022-07-21 17:11:18 +02:00
Austin Siu a1faeddbe7 Use DescribeInstanceTypes API to get EC2 instance type details 2021-12-07 00:05:36 -06:00
Adrian Lai 329c6522b0
Break out unmarshal from GenerateEC2InstanceTypes
Refactor to allow for optimisation
2021-08-09 10:46:30 +01:00
Benjamin Pineau 3ffe4b3557 aws: support arm64 instances
Sets the `kubernetes.io/arch` (and legacy `beta.kubernetes.io/arch`)
to the proper instance architecture.

While at it, re-gen the instance types list (adding new instance types
that were missing)
2021-04-19 15:45:19 +02:00
Jiaxin Shan 7eb864502c Load AWS EC2 Instance Types dynamically 2019-10-14 17:19:42 -07:00