feat: Add the SPOT support for Managed Node Groups (#1129)

BREAKING CHANGES: To add add SPOT support for MNG, the `instance_type` is now a list and renamed as `instance_types`. This will probably rebuild existing Managed Node Groups.
This commit is contained in:
Jonathan Cole
2021-01-28 14:08:29 -08:00
committed by GitHub
parent 76537d1b8d
commit 8978997bb1
5 changed files with 11 additions and 5 deletions

View File

@@ -7,8 +7,11 @@ resource "random_pet" "node_groups" {
keepers = {
ami_type = lookup(each.value, "ami_type", null)
disk_size = lookup(each.value, "disk_size", null)
instance_type = each.value["instance_type"]
capacity_type = lookup(each.value, "capacity_type", null)
iam_role_arn = each.value["iam_role_arn"]
instance_types = join("|", compact(
lookup(each.value, "instance_types", [])
))
key_name = each.value["key_name"]