Skip to content

Commit

Permalink
Merge pull request #101 from castai/KUBE-688
Browse files Browse the repository at this point in the history
feat: support for lb in gke
  • Loading branch information
aldor007 authored Nov 19, 2024
2 parents ad8fe17 + 5563a54 commit 2280116
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,26 @@ resource "castai_node_configuration" "this" {
network_tags = try(each.value.network_tags, null)
disk_type = try(each.value.disk_type, null)
use_ephemeral_storage_local_ssd = try(each.value.use_ephemeral_storage_local_ssd, null)
dynamic "loadbalancers" {
for_each = flatten([lookup(each.value, "loadbalancers", [])])
content {
dynamic "target_backend_pools" {
for_each = flatten([lookup(loadbalancers.value, "target_backend_pools", [])])

content {
name = try(target_backend_pools.value.name, null)
}
}
dynamic "unmanaged_instance_groups" {
for_each = flatten([lookup(loadbalancers.value, "unmanaged_instance_groups", [])])

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

Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
}
castai = {
source = "castai/castai"
version = "~> 7.21"
version = "~> 7.24"
}
helm = {
source = "hashicorp/helm"
Expand Down

0 comments on commit 2280116

Please sign in to comment.