From 02f38dd83bf7d3d183364e0466492820144c3a10 Mon Sep 17 00:00:00 2001 From: drfaust92 Date: Tue, 10 Dec 2024 16:27:08 -0500 Subject: [PATCH] fix min_cpu_platform ref Signed-off-by: drfaust92 --- autogen/main/cluster.tf.tmpl | 2 +- modules/beta-private-cluster-update-variant/cluster.tf | 2 +- modules/beta-private-cluster/cluster.tf | 2 +- modules/beta-public-cluster-update-variant/cluster.tf | 2 +- modules/beta-public-cluster/cluster.tf | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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") }