Skip to content

Commit

Permalink
fix: local nvme ssd count (#1937)
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0-m authored May 14, 2024
1 parent d01e5bc commit dbd90e3
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ resource "google_container_node_pool" "windows_pools" {
{% endif %}

dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down
4 changes: 2 additions & 2 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ resource "google_container_node_pool" "pools" {


dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down Expand Up @@ -784,7 +784,7 @@ resource "google_container_node_pool" "windows_pools" {


dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down
4 changes: 2 additions & 2 deletions modules/beta-private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ resource "google_container_node_pool" "pools" {
}

dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down Expand Up @@ -976,7 +976,7 @@ resource "google_container_node_pool" "windows_pools" {
}

dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down
4 changes: 2 additions & 2 deletions modules/beta-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ resource "google_container_node_pool" "pools" {
}

dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down Expand Up @@ -900,7 +900,7 @@ resource "google_container_node_pool" "windows_pools" {
}

dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down
4 changes: 2 additions & 2 deletions modules/beta-public-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ resource "google_container_node_pool" "pools" {
}

dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down Expand Up @@ -957,7 +957,7 @@ resource "google_container_node_pool" "windows_pools" {
}

dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down
4 changes: 2 additions & 2 deletions modules/beta-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ resource "google_container_node_pool" "pools" {
}

dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down Expand Up @@ -881,7 +881,7 @@ resource "google_container_node_pool" "windows_pools" {
}

dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down
4 changes: 2 additions & 2 deletions modules/private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ resource "google_container_node_pool" "pools" {


dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down Expand Up @@ -879,7 +879,7 @@ resource "google_container_node_pool" "windows_pools" {


dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down
4 changes: 2 additions & 2 deletions modules/private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ resource "google_container_node_pool" "pools" {


dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down Expand Up @@ -803,7 +803,7 @@ resource "google_container_node_pool" "windows_pools" {


dynamic "local_nvme_ssd_block_config" {
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [1] : []
for_each = lookup(each.value, "local_nvme_ssd_count", 0) > 0 ? [each.value.local_nvme_ssd_count] : []
content {
local_ssd_count = local_nvme_ssd_block_config.value
}
Expand Down

0 comments on commit dbd90e3

Please sign in to comment.