Skip to content

Commit 3c3c73f

Browse files
committed
Adding an addition condition to ephemeral_storage_local_ssd_config creation related to dick_type=hyperdisk-balanced to narrow the solution scope
1 parent 3a2858d commit 3c3c73f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/beta-private-cluster/cluster.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ resource "google_container_node_pool" "windows_pools" {
13151315
disk_type = lookup(each.value, "disk_type", "pd-standard")
13161316

13171317
dynamic "ephemeral_storage_local_ssd_config" {
1318-
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] : []
1318+
for_each = lookup(each.value, "local_ssd_ephemeral_storage_count", 0) > 0 || lookup(each.value, "ephemeral_storage_local_ssd_data_cache_count", 0) > 0 || lookup(each.value, "disk_type", "pd-ssd") == "hyperdisk-balanced" ? [1] : []
13191319
content {
13201320
local_ssd_count = lookup(each.value, "local_ssd_ephemeral_storage_count", 0)
13211321
data_cache_count = lookup(each.value, "ephemeral_storage_local_ssd_data_cache_count", 0)

0 commit comments

Comments
 (0)