Skip to content

Commit

Permalink
fix: Node Pool enable_gcfs true:false (#1976)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Peabody <[email protected]>
  • Loading branch information
psiegmannyardi and apeabody authored Sep 11, 2024
1 parent a083437 commit 419078d
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 24 deletions.
4 changes: 2 additions & 2 deletions autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ resource "google_container_cluster" "primary" {
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
enable_confidential_storage = lookup(var.node_pools[0], "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : []
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -887,7 +887,7 @@ resource "google_container_node_pool" "windows_pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down
6 changes: 3 additions & 3 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ resource "google_container_cluster" "primary" {
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
enable_confidential_storage = lookup(var.node_pools[0], "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : []
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -593,7 +593,7 @@ resource "google_container_node_pool" "pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -875,7 +875,7 @@ resource "google_container_node_pool" "windows_pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_regional_with_ipv6/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ provider "kubernetes" {
}

module "gke" {
source = "../../"
source = "terraform-google-modules/kubernetes-engine/google"
project_id = var.project_id
name = "${local.cluster_type}-cluster${var.cluster_name_suffix}"
regional = true
Expand Down
6 changes: 3 additions & 3 deletions modules/beta-private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ resource "google_container_cluster" "primary" {
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
enable_confidential_storage = lookup(var.node_pools[0], "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : []
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -760,7 +760,7 @@ resource "google_container_node_pool" "pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -1056,7 +1056,7 @@ resource "google_container_node_pool" "windows_pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down
6 changes: 3 additions & 3 deletions modules/beta-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ resource "google_container_cluster" "primary" {
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
enable_confidential_storage = lookup(var.node_pools[0], "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : []
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -678,7 +678,7 @@ resource "google_container_node_pool" "pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -973,7 +973,7 @@ resource "google_container_node_pool" "windows_pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down
6 changes: 3 additions & 3 deletions modules/beta-public-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ resource "google_container_cluster" "primary" {
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
enable_confidential_storage = lookup(var.node_pools[0], "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : []
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -739,7 +739,7 @@ resource "google_container_node_pool" "pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -1035,7 +1035,7 @@ resource "google_container_node_pool" "windows_pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down
6 changes: 3 additions & 3 deletions modules/beta-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ resource "google_container_cluster" "primary" {
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
enable_confidential_storage = lookup(var.node_pools[0], "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : []
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -657,7 +657,7 @@ resource "google_container_node_pool" "pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -952,7 +952,7 @@ resource "google_container_node_pool" "windows_pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down
6 changes: 3 additions & 3 deletions modules/private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ resource "google_container_cluster" "primary" {
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
enable_confidential_storage = lookup(var.node_pools[0], "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : []
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -696,7 +696,7 @@ resource "google_container_node_pool" "pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -979,7 +979,7 @@ resource "google_container_node_pool" "windows_pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down
6 changes: 3 additions & 3 deletions modules/private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ resource "google_container_cluster" "primary" {
min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "")
enable_confidential_storage = lookup(var.node_pools[0], "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : []
for_each = lookup(var.node_pools[0], "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -614,7 +614,7 @@ resource "google_container_node_pool" "pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down Expand Up @@ -896,7 +896,7 @@ resource "google_container_node_pool" "windows_pools" {
min_cpu_platform = lookup(each.value, "min_cpu_platform", "")
enable_confidential_storage = lookup(each.value, "enable_confidential_storage", false)
dynamic "gcfs_config" {
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : []
for_each = lookup(each.value, "enable_gcfs", false) ? [true] : [false]
content {
enabled = gcfs_config.value
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
"config": {
"diskSizeGb": 100,
"diskType": "pd-standard",
"gcfsConfig": {},
"imageType": "COS_CONTAINERD",
"labels": {
"cluster_name": "CLUSTER_NAME",
Expand Down

0 comments on commit 419078d

Please sign in to comment.