From c53245503ddb9e854656deda887ce9cd26b180d2 Mon Sep 17 00:00:00 2001 From: Laura Seidler <42136707+lauraseidler@users.noreply.github.com> Date: Fri, 15 Apr 2022 23:15:16 +0200 Subject: [PATCH] feat: Add keeper for `enable_gcfs` node pool option for update variants (#1218) As changing the `gcfs_config` block currently forces a replacement of the node pool, see: https://github.com/hashicorp/terraform-provider-google/blob/5290a9f74d491bd3a05c32cdc60773ac6c53d4ae/google/node_config.go#L119 Fixes #1217 Co-authored-by: Bharath KKB --- autogen/main/cluster.tf.tmpl | 1 + modules/beta-private-cluster-update-variant/cluster.tf | 1 + modules/beta-public-cluster-update-variant/cluster.tf | 1 + modules/private-cluster-update-variant/cluster.tf | 1 + 4 files changed, 4 insertions(+) diff --git a/autogen/main/cluster.tf.tmpl b/autogen/main/cluster.tf.tmpl index 81f5b26367..0953ca827c 100644 --- a/autogen/main/cluster.tf.tmpl +++ b/autogen/main/cluster.tf.tmpl @@ -435,6 +435,7 @@ locals { "spot", {% endif %} "service_account", + "enable_gcfs", ] } diff --git a/modules/beta-private-cluster-update-variant/cluster.tf b/modules/beta-private-cluster-update-variant/cluster.tf index c619fcf69d..4f912de795 100644 --- a/modules/beta-private-cluster-update-variant/cluster.tf +++ b/modules/beta-private-cluster-update-variant/cluster.tf @@ -374,6 +374,7 @@ locals { "preemptible", "spot", "service_account", + "enable_gcfs", ] } diff --git a/modules/beta-public-cluster-update-variant/cluster.tf b/modules/beta-public-cluster-update-variant/cluster.tf index 68173830ba..853b045297 100644 --- a/modules/beta-public-cluster-update-variant/cluster.tf +++ b/modules/beta-public-cluster-update-variant/cluster.tf @@ -355,6 +355,7 @@ locals { "preemptible", "spot", "service_account", + "enable_gcfs", ] } diff --git a/modules/private-cluster-update-variant/cluster.tf b/modules/private-cluster-update-variant/cluster.tf index a5eca32afc..b51652d374 100644 --- a/modules/private-cluster-update-variant/cluster.tf +++ b/modules/private-cluster-update-variant/cluster.tf @@ -247,6 +247,7 @@ locals { "min_cpu_platform", "preemptible", "service_account", + "enable_gcfs", ] }