Skip to content

Commit

Permalink
Hoists taints block of the aws_eks_node_group as a variable (#366)
Browse files Browse the repository at this point in the history
* Update karpenter_version to v0.32.2

* Hoists `taints` block of the `aws_eks_node_group` as a variable

* optional value for taint

---------

Co-authored-by: aleks-auguria <[email protected]>
Co-authored-by: Bogdan Buduroiu <[email protected]>
  • Loading branch information
3 people authored Jan 23, 2024
1 parent ae947dc commit 94c9c3d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions node_groups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ resource "aws_eks_node_group" "node_group" {
max_unavailable_percentage = lookup(each.value, "update_unavailable_percent", 50)
}

dynamic "taint" {
for_each = lookup(each.value, "taints", [])
content {
key = taint.value["key"]
value = lookup(taint.value, "value", null)
effect = taint.value["effect"]
}
}

tags = merge(
local.tags,
{
Expand Down

0 comments on commit 94c9c3d

Please sign in to comment.