Skip to content

Commit

Permalink
Add new LB fields to config (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsonov authored Dec 3, 2024
1 parent 75e691d commit 0811757
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,24 @@ resource "castai_node_configuration" "this" {
for_each = flatten([lookup(each.value, "loadbalancers", [])])

content {
id = try(loadbalancers.value.id, null)
name = try(loadbalancers.value.name, null)

dynamic "ip_based_backend_pools" {
for_each = flatten([lookup(loadbalancers.value, "ip_based_backend_pools", [])])

content {
name = try(ip_based_backend_pools.value.name, null)
}
}

dynamic "nic_based_backend_pools" {
for_each = flatten([lookup(loadbalancers.value, "nic_based_backend_pools", [])])

content {
name = try(nic_based_backend_pools.value.name, null)
}
}
}
}
}
Expand Down

0 comments on commit 0811757

Please sign in to comment.