Skip to content

Commit

Permalink
feat: support for lb in aks (#90)
Browse files Browse the repository at this point in the history
* feat: support for lb in aks

* feat: support for lb in aks
  • Loading branch information
aldor007 authored Oct 10, 2024
1 parent 6947372 commit 1547280
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ resource "castai_node_configuration" "this" {
max_pods_per_node = try(each.value.max_pods_per_node, 30)
os_disk_type = try(each.value.os_disk_type, null)
aks_image_family = try(each.value.aks_image_family, null)
dynamic "loadbalancers" {
for_each = flatten([lookup(each.value, "loadbalancers", [])])

content {
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)
}
}
}
}
}
}

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

0 comments on commit 1547280

Please sign in to comment.