From 3573d23b074423b69dae01b97926fe312ae01f2c Mon Sep 17 00:00:00 2001 From: Maximilian Greve Date: Thu, 30 Nov 2023 12:42:21 +0000 Subject: [PATCH] added index for public ip conditions --- modules/ionos-k8s-cluster/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ionos-k8s-cluster/main.tf b/modules/ionos-k8s-cluster/main.tf index dcb19f1..22683bb 100644 --- a/modules/ionos-k8s-cluster/main.tf +++ b/modules/ionos-k8s-cluster/main.tf @@ -113,7 +113,7 @@ resource "ionoscloud_k8s_node_pool" "nodepool_legacy" { cores_count = each.value.core_count ram_size = each.value.ram_size storage_size = each.value.storage_size - public_ips = each.value.create_public_ip_pools ? ionoscloud_ipblock.ippools[each.key].ips : each.value.public_ips == null ? [] : each.value.node_count > length(each.value.public_ips) ? [] : slice(each.value.public_ips[each.value.nodepool_index], 0, each.value.node_count) #slice(public_ips[0] = [""],0,2) + public_ips = each.value.create_public_ip_pools ? ionoscloud_ipblock.ippools[each.key].ips : each.value.public_ips[each.value.nodepool_index] == null ? [] : each.value.node_count > length(each.value.public_ips[each.value.nodepool_index]) ? [] : slice(each.value.public_ips[each.value.nodepool_index], 0, each.value.node_count) #slice(public_ips[0] = [""],0,2) } resource "ionoscloud_ipblock" "ippools" {