Skip to content

Commit

Permalink
Update aws_csi_secrets_store.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
sohanyadav authored Oct 30, 2024
1 parent 29d4783 commit c114108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws_csi_secrets_store.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ resource "aws_iam_role_policy_attachment" "secrets_manager_attachment" {


resource "kubernetes_service_account" "main" {
for_each = var.csi_secrets_store_enabled ? toset(var.csi_enabled_namespaces) : []
for_each = toset(var.csi_enabled_namespaces)

metadata {
name = "csi-secrets-service-account"
Expand All @@ -116,4 +116,4 @@ resource "kubernetes_service_account" "main" {
"eks.amazonaws.com/role-arn" = join("",aws_iam_role.secrets_manager_role.*.name)
}
}
}
}

0 comments on commit c114108

Please sign in to comment.