mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-18 07:23:45 +01:00
feat: Add support for pod identity association on EKS addons (#3203)
This commit is contained in:
28
main.tf
28
main.tf
@@ -496,8 +496,18 @@ resource "aws_eks_addon" "this" {
|
||||
cluster_name = aws_eks_cluster.this[0].name
|
||||
addon_name = try(each.value.name, each.key)
|
||||
|
||||
addon_version = coalesce(try(each.value.addon_version, null), data.aws_eks_addon_version.this[each.key].version)
|
||||
configuration_values = try(each.value.configuration_values, null)
|
||||
addon_version = coalesce(try(each.value.addon_version, null), data.aws_eks_addon_version.this[each.key].version)
|
||||
configuration_values = try(each.value.configuration_values, null)
|
||||
|
||||
dynamic "pod_identity_association" {
|
||||
for_each = try(each.value.pod_identity_association, [])
|
||||
|
||||
content {
|
||||
role_arn = pod_identity_association.value.role_arn
|
||||
service_account = pod_identity_association.value.service_account
|
||||
}
|
||||
}
|
||||
|
||||
preserve = try(each.value.preserve, true)
|
||||
resolve_conflicts_on_create = try(each.value.resolve_conflicts_on_create, "OVERWRITE")
|
||||
resolve_conflicts_on_update = try(each.value.resolve_conflicts_on_update, "OVERWRITE")
|
||||
@@ -525,8 +535,18 @@ resource "aws_eks_addon" "before_compute" {
|
||||
cluster_name = aws_eks_cluster.this[0].name
|
||||
addon_name = try(each.value.name, each.key)
|
||||
|
||||
addon_version = coalesce(try(each.value.addon_version, null), data.aws_eks_addon_version.this[each.key].version)
|
||||
configuration_values = try(each.value.configuration_values, null)
|
||||
addon_version = coalesce(try(each.value.addon_version, null), data.aws_eks_addon_version.this[each.key].version)
|
||||
configuration_values = try(each.value.configuration_values, null)
|
||||
|
||||
dynamic "pod_identity_association" {
|
||||
for_each = try(each.value.pod_identity_association, [])
|
||||
|
||||
content {
|
||||
role_arn = pod_identity_association.value.role_arn
|
||||
service_account = pod_identity_association.value.service_account
|
||||
}
|
||||
}
|
||||
|
||||
preserve = try(each.value.preserve, true)
|
||||
resolve_conflicts_on_create = try(each.value.resolve_conflicts_on_create, "OVERWRITE")
|
||||
resolve_conflicts_on_update = try(each.value.resolve_conflicts_on_update, "OVERWRITE")
|
||||
|
||||
Reference in New Issue
Block a user