diff --git a/autogen/main/cluster.tf.tmpl b/autogen/main/cluster.tf.tmpl index 330e782756..1324b9c0d7 100644 --- a/autogen/main/cluster.tf.tmpl +++ b/autogen/main/cluster.tf.tmpl @@ -890,7 +890,7 @@ resource "google_container_node_pool" "windows_pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( diff --git a/cluster.tf b/cluster.tf index 8b083f07ba..7f6368eef2 100644 --- a/cluster.tf +++ b/cluster.tf @@ -600,7 +600,7 @@ resource "google_container_node_pool" "pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( @@ -890,7 +890,7 @@ resource "google_container_node_pool" "windows_pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( diff --git a/modules/beta-private-cluster-update-variant/cluster.tf b/modules/beta-private-cluster-update-variant/cluster.tf index 4c01762c72..abfe3c32c2 100644 --- a/modules/beta-private-cluster-update-variant/cluster.tf +++ b/modules/beta-private-cluster-update-variant/cluster.tf @@ -768,7 +768,7 @@ resource "google_container_node_pool" "pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( @@ -1072,7 +1072,7 @@ resource "google_container_node_pool" "windows_pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( diff --git a/modules/beta-private-cluster/cluster.tf b/modules/beta-private-cluster/cluster.tf index 1d5f832021..3bf754be3b 100644 --- a/modules/beta-private-cluster/cluster.tf +++ b/modules/beta-private-cluster/cluster.tf @@ -685,7 +685,7 @@ resource "google_container_node_pool" "pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( @@ -988,7 +988,7 @@ resource "google_container_node_pool" "windows_pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( diff --git a/modules/beta-public-cluster-update-variant/cluster.tf b/modules/beta-public-cluster-update-variant/cluster.tf index 04baad07c0..51d4a55e0c 100644 --- a/modules/beta-public-cluster-update-variant/cluster.tf +++ b/modules/beta-public-cluster-update-variant/cluster.tf @@ -747,7 +747,7 @@ resource "google_container_node_pool" "pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( @@ -1051,7 +1051,7 @@ resource "google_container_node_pool" "windows_pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( diff --git a/modules/beta-public-cluster/cluster.tf b/modules/beta-public-cluster/cluster.tf index b395b13bd4..043c89402a 100644 --- a/modules/beta-public-cluster/cluster.tf +++ b/modules/beta-public-cluster/cluster.tf @@ -664,7 +664,7 @@ resource "google_container_node_pool" "pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( @@ -967,7 +967,7 @@ resource "google_container_node_pool" "windows_pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( diff --git a/modules/private-cluster-update-variant/cluster.tf b/modules/private-cluster-update-variant/cluster.tf index c29d15ecb4..a3bfeb52b5 100644 --- a/modules/private-cluster-update-variant/cluster.tf +++ b/modules/private-cluster-update-variant/cluster.tf @@ -704,7 +704,7 @@ resource "google_container_node_pool" "pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( @@ -995,7 +995,7 @@ resource "google_container_node_pool" "windows_pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( diff --git a/modules/private-cluster/cluster.tf b/modules/private-cluster/cluster.tf index dcbe415869..44966b2f06 100644 --- a/modules/private-cluster/cluster.tf +++ b/modules/private-cluster/cluster.tf @@ -621,7 +621,7 @@ resource "google_container_node_pool" "pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge( @@ -911,7 +911,7 @@ resource "google_container_node_pool" "windows_pools" { content { consume_reservation_type = reservation_affinity.value.consume_reservation_type key = reservation_affinity.value.key - values = split(",", reservation_affinity.value.values) + values = reservation_affinity.value.values == null ? null : split(",", reservation_affinity.value.values) } } labels = merge(