Skip to content

Commit 45950ad

Browse files
committed
add support for pod_range in private cluster
1 parent 493149d commit 45950ad

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

modules/private-cluster/cluster.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,20 @@ resource "google_container_node_pool" "pools" {
455455
}
456456
}
457457

458+
dynamic "placement_policy" {
459+
for_each = length(lookup(each.value, "placement_policy", "")) > 0 ? [each.value] : []
460+
content {
461+
type = lookup(placement_policy.value, "placement_policy", null)
462+
}
463+
}
464+
465+
dynamic "network_config" {
466+
for_each = length(lookup(each.value, "pod_range", "")) > 0 ? [each.value] : []
467+
content {
468+
pod_range = lookup(network_config.value, "pod_range", null)
469+
enable_private_nodes = var.enable_private_nodes
470+
}
471+
}
458472

459473
management {
460474
auto_repair = lookup(each.value, "auto_repair", true)

0 commit comments

Comments
 (0)