From 903dee1c973270cde6144548b86e8cb654aac6f4 Mon Sep 17 00:00:00 2001 From: nikchern Date: Tue, 27 Jun 2023 20:26:30 -0700 Subject: [PATCH] PLT-548: Edge native: host_uid from machine_pool.value.edge_hosts yaml struct. (#72) * PLT-548: Edge native: host_uid from machine_pool.value.edge_hosts yaml struct. * Update spectro-cluster-edge-native.tf * PLT-548: use toset() for host_uids. --- spectro-cluster-edge-native.tf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spectro-cluster-edge-native.tf b/spectro-cluster-edge-native.tf index 9eb6d6a..5cc4854 100644 --- a/spectro-cluster-edge-native.tf +++ b/spectro-cluster-edge-native.tf @@ -127,7 +127,13 @@ resource "spectrocloud_cluster_edge_native" "this" { update_strategy = try(machine_pool.value.update_strategy, "RollingUpdateScaleOut") additional_labels = try(machine_pool.value.additional_labels, tomap({})) - host_uids = machine_pool.value.host_uids + /* extract host_uid from machine_pool.value.edge_hosts yaml struct below + edge_hosts: + - host_uid: + static_ip: */ + host_uids = toset([for host in machine_pool.value.edge_hosts : host.host_uid]) + // old plain list. + #host_uids = machine_pool.value.host_uids dynamic "taints" { for_each = try(machine_pool.value.taints, [])