diff --git a/autogen/main/cluster.tf.tmpl b/autogen/main/cluster.tf.tmpl index be57e17a48..4c6ab3db8b 100644 --- a/autogen/main/cluster.tf.tmpl +++ b/autogen/main/cluster.tf.tmpl @@ -375,6 +375,18 @@ resource "random_id" "name" { ) ) }, + { + taints = join(",", + sort( + flatten( + concat( + [for all_taints in local.node_pools_taints["all"] : "all/${all_taints.key}/${all_taints.value}/${all_taints.effect}"], + [for each_pool_taint in local.node_pools_taints[each.value["name"]] : "${each.value["name"]}/${each_pool_taint.key}/${each_pool_taint.value}/${each_pool_taint.effect}"], + ) + ) + ) + ) + }, { metadata = join(",", sort( diff --git a/modules/beta-private-cluster-update-variant/cluster.tf b/modules/beta-private-cluster-update-variant/cluster.tf index 208608fbd9..fcd586eca0 100644 --- a/modules/beta-private-cluster-update-variant/cluster.tf +++ b/modules/beta-private-cluster-update-variant/cluster.tf @@ -343,6 +343,18 @@ resource "random_id" "name" { ) ) }, + { + taints = join(",", + sort( + flatten( + concat( + [for all_taints in local.node_pools_taints["all"] : "all/${all_taints.key}/${all_taints.value}/${all_taints.effect}"], + [for each_pool_taint in local.node_pools_taints[each.value["name"]] : "${each.value["name"]}/${each_pool_taint.key}/${each_pool_taint.value}/${each_pool_taint.effect}"], + ) + ) + ) + ) + }, { metadata = join(",", sort( diff --git a/modules/beta-public-cluster-update-variant/cluster.tf b/modules/beta-public-cluster-update-variant/cluster.tf index 642f83f8d0..00bc55fb8d 100644 --- a/modules/beta-public-cluster-update-variant/cluster.tf +++ b/modules/beta-public-cluster-update-variant/cluster.tf @@ -324,6 +324,18 @@ resource "random_id" "name" { ) ) }, + { + taints = join(",", + sort( + flatten( + concat( + [for all_taints in local.node_pools_taints["all"] : "all/${all_taints.key}/${all_taints.value}/${all_taints.effect}"], + [for each_pool_taint in local.node_pools_taints[each.value["name"]] : "${each.value["name"]}/${each_pool_taint.key}/${each_pool_taint.value}/${each_pool_taint.effect}"], + ) + ) + ) + ) + }, { metadata = join(",", sort( diff --git a/modules/private-cluster-update-variant/cluster.tf b/modules/private-cluster-update-variant/cluster.tf index cecbf97cf0..ce0c42e25c 100644 --- a/modules/private-cluster-update-variant/cluster.tf +++ b/modules/private-cluster-update-variant/cluster.tf @@ -241,6 +241,18 @@ resource "random_id" "name" { ) ) }, + { + taints = join(",", + sort( + flatten( + concat( + [for all_taints in local.node_pools_taints["all"] : "all/${all_taints.key}/${all_taints.value}/${all_taints.effect}"], + [for each_pool_taint in local.node_pools_taints[each.value["name"]] : "${each.value["name"]}/${each_pool_taint.key}/${each_pool_taint.value}/${each_pool_taint.effect}"], + ) + ) + ) + ) + }, { metadata = join(",", sort(