mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-18 07:23:45 +01:00
feat: Add support for upgrade_policy (#3112)
* feat: Add support for `upgrade_policy` * chore: Update test and validate
This commit is contained in:
8
main.tf
8
main.tf
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user