diff --git a/autogen/main/cluster.tf.tmpl b/autogen/main/cluster.tf.tmpl index b493d04f7..d997ac407 100644 --- a/autogen/main/cluster.tf.tmpl +++ b/autogen/main/cluster.tf.tmpl @@ -183,7 +183,7 @@ resource "google_container_cluster" "primary" { } {% if beta_cluster %} - min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "") + min_cpu_platform = lookup(var.cluster_autoscaling, "min_cpu_platform", "") {% endif %} image_type = lookup(var.cluster_autoscaling, "image_type", "COS_CONTAINERD") diff --git a/modules/beta-private-cluster-update-variant/cluster.tf b/modules/beta-private-cluster-update-variant/cluster.tf index d4f320e36..3fec97d43 100644 --- a/modules/beta-private-cluster-update-variant/cluster.tf +++ b/modules/beta-private-cluster-update-variant/cluster.tf @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" { enable_integrity_monitoring = lookup(var.cluster_autoscaling, "enable_integrity_monitoring", true) } - min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "") + min_cpu_platform = lookup(var.cluster_autoscaling, "min_cpu_platform", "") image_type = lookup(var.cluster_autoscaling, "image_type", "COS_CONTAINERD") } diff --git a/modules/beta-private-cluster/cluster.tf b/modules/beta-private-cluster/cluster.tf index 29f11bb7e..73d12ec04 100644 --- a/modules/beta-private-cluster/cluster.tf +++ b/modules/beta-private-cluster/cluster.tf @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" { enable_integrity_monitoring = lookup(var.cluster_autoscaling, "enable_integrity_monitoring", true) } - min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "") + min_cpu_platform = lookup(var.cluster_autoscaling, "min_cpu_platform", "") image_type = lookup(var.cluster_autoscaling, "image_type", "COS_CONTAINERD") } diff --git a/modules/beta-public-cluster-update-variant/cluster.tf b/modules/beta-public-cluster-update-variant/cluster.tf index b20fa7483..057e41908 100644 --- a/modules/beta-public-cluster-update-variant/cluster.tf +++ b/modules/beta-public-cluster-update-variant/cluster.tf @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" { enable_integrity_monitoring = lookup(var.cluster_autoscaling, "enable_integrity_monitoring", true) } - min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "") + min_cpu_platform = lookup(var.cluster_autoscaling, "min_cpu_platform", "") image_type = lookup(var.cluster_autoscaling, "image_type", "COS_CONTAINERD") } diff --git a/modules/beta-public-cluster/cluster.tf b/modules/beta-public-cluster/cluster.tf index d76574eb3..42a350b6b 100644 --- a/modules/beta-public-cluster/cluster.tf +++ b/modules/beta-public-cluster/cluster.tf @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" { enable_integrity_monitoring = lookup(var.cluster_autoscaling, "enable_integrity_monitoring", true) } - min_cpu_platform = lookup(var.node_pools[0], "min_cpu_platform", "") + min_cpu_platform = lookup(var.cluster_autoscaling, "min_cpu_platform", "") image_type = lookup(var.cluster_autoscaling, "image_type", "COS_CONTAINERD") }