Skip to content

Commit

Permalink
Adding additional_role_ref variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigobersa committed Sep 22, 2023
1 parent 32f64bd commit 8df2507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ resource "kubernetes_cluster_role_binding_v1" "this" {
for_each = var.create_cluster_role && !var.enable_admin ? { for k, v in flatten([kubernetes_cluster_role_v1.this[0].metadata[0].name, try(var.additional_role_ref.name, "")]) : k => v if var.additional_role_ref != {} } : {}

metadata {
name = "${each.value}-rolebinding"
name = each.value
annotations = var.annotations
labels = var.labels
}
Expand Down

0 comments on commit 8df2507

Please sign in to comment.