feat: Add support for upgrade_policy (#3112)

* feat: Add support for `upgrade_policy`

* chore: Update test and validate
This commit is contained in:
Bryant Biggs
2024-08-05 09:07:13 -05:00
committed by GitHub
parent 705eb80cfa
commit e12ab7a5de
27 changed files with 55 additions and 36 deletions

View File

@@ -84,6 +84,14 @@ resource "aws_eks_cluster" "this" {
}
}
dynamic "upgrade_policy" {
for_each = length(var.cluster_upgrade_policy) > 0 ? [var.cluster_upgrade_policy] : []
content {
support_type = try(upgrade_policy.value.support_type, null)
}
}
tags = merge(
{ terraform-aws-modules = "eks" },
var.tags,