Skip to content

Commit

Permalink
PLT-548: Edge native: host_uid from machine_pool.value.edge_hosts yam…
Browse files Browse the repository at this point in the history
…l 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.
  • Loading branch information
nikchern authored Jun 28, 2023
1 parent 242f792 commit 903dee1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spectro-cluster-edge-native.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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, [])
Expand Down

0 comments on commit 903dee1

Please sign in to comment.