Skip to content

Commit 2c73880

Browse files
committed
fix: include zero value local_ssd_ephemeral_storage_count for highcpu nodepool machine_type
1 parent ed59bba commit 2c73880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/beta-public-cluster/cluster.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ resource "google_container_node_pool" "pools" {
914914
disk_type = lookup(each.value, "disk_type", "pd-standard")
915915

916916
dynamic "ephemeral_storage_local_ssd_config" {
917-
for_each = lookup(each.value, "local_ssd_ephemeral_storage_count", 0) > 0 || lookup(each.value, "ephemeral_storage_local_ssd_data_cache_count", 0) > 0 ? [1] : []
917+
for_each = lookup(each.value, "local_ssd_ephemeral_storage_count", 0) >= 0 || lookup(each.value, "ephemeral_storage_local_ssd_data_cache_count", 0) > 0 ? [1] : []
918918
content {
919919
local_ssd_count = lookup(each.value, "local_ssd_ephemeral_storage_count", 0)
920920
data_cache_count = lookup(each.value, "ephemeral_storage_local_ssd_data_cache_count", 0)

0 commit comments

Comments
 (0)