From 3dea235faaf6b2ff3d54f1c70dca134f8c8ef378 Mon Sep 17 00:00:00 2001 From: Morgante Pell Date: Mon, 15 Nov 2021 16:37:23 -0500 Subject: [PATCH] fix: ignore ASM labels (#1061) --- autogen/main/cluster.tf.tmpl | 2 +- cluster.tf | 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 +- modules/private-cluster-update-variant/cluster.tf | 2 +- modules/private-cluster/cluster.tf | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/autogen/main/cluster.tf.tmpl b/autogen/main/cluster.tf.tmpl index 0375299d67..36c154953b 100644 --- a/autogen/main/cluster.tf.tmpl +++ b/autogen/main/cluster.tf.tmpl @@ -246,7 +246,7 @@ resource "google_container_cluster" "primary" { } lifecycle { - ignore_changes = [node_pool, initial_node_count] + ignore_changes = [node_pool, initial_node_count, resource_labels["asmv"], resource_labels["mesh_id"]] } timeouts { diff --git a/cluster.tf b/cluster.tf index 05d6ac3f21..57de711800 100644 --- a/cluster.tf +++ b/cluster.tf @@ -124,7 +124,7 @@ resource "google_container_cluster" "primary" { } lifecycle { - ignore_changes = [node_pool, initial_node_count] + ignore_changes = [node_pool, initial_node_count, resource_labels["asmv"], resource_labels["mesh_id"]] } timeouts { diff --git a/modules/beta-private-cluster-update-variant/cluster.tf b/modules/beta-private-cluster-update-variant/cluster.tf index 4c6004e33f..1c08ad7a86 100644 --- a/modules/beta-private-cluster-update-variant/cluster.tf +++ b/modules/beta-private-cluster-update-variant/cluster.tf @@ -217,7 +217,7 @@ resource "google_container_cluster" "primary" { } lifecycle { - ignore_changes = [node_pool, initial_node_count] + ignore_changes = [node_pool, initial_node_count, resource_labels["asmv"], resource_labels["mesh_id"]] } timeouts { diff --git a/modules/beta-private-cluster/cluster.tf b/modules/beta-private-cluster/cluster.tf index 1412626ab8..b36e78ac70 100644 --- a/modules/beta-private-cluster/cluster.tf +++ b/modules/beta-private-cluster/cluster.tf @@ -217,7 +217,7 @@ resource "google_container_cluster" "primary" { } lifecycle { - ignore_changes = [node_pool, initial_node_count] + ignore_changes = [node_pool, initial_node_count, resource_labels["asmv"], resource_labels["mesh_id"]] } timeouts { diff --git a/modules/beta-public-cluster-update-variant/cluster.tf b/modules/beta-public-cluster-update-variant/cluster.tf index 8e81246548..4a8d0eb787 100644 --- a/modules/beta-public-cluster-update-variant/cluster.tf +++ b/modules/beta-public-cluster-update-variant/cluster.tf @@ -217,7 +217,7 @@ resource "google_container_cluster" "primary" { } lifecycle { - ignore_changes = [node_pool, initial_node_count] + ignore_changes = [node_pool, initial_node_count, resource_labels["asmv"], resource_labels["mesh_id"]] } timeouts { diff --git a/modules/beta-public-cluster/cluster.tf b/modules/beta-public-cluster/cluster.tf index f06a15d34b..fb19ff7e07 100644 --- a/modules/beta-public-cluster/cluster.tf +++ b/modules/beta-public-cluster/cluster.tf @@ -217,7 +217,7 @@ resource "google_container_cluster" "primary" { } lifecycle { - ignore_changes = [node_pool, initial_node_count] + ignore_changes = [node_pool, initial_node_count, resource_labels["asmv"], resource_labels["mesh_id"]] } timeouts { diff --git a/modules/private-cluster-update-variant/cluster.tf b/modules/private-cluster-update-variant/cluster.tf index 735fc07d3a..8852b01391 100644 --- a/modules/private-cluster-update-variant/cluster.tf +++ b/modules/private-cluster-update-variant/cluster.tf @@ -124,7 +124,7 @@ resource "google_container_cluster" "primary" { } lifecycle { - ignore_changes = [node_pool, initial_node_count] + ignore_changes = [node_pool, initial_node_count, resource_labels["asmv"], resource_labels["mesh_id"]] } timeouts { diff --git a/modules/private-cluster/cluster.tf b/modules/private-cluster/cluster.tf index d04e8fde0a..308bff0bce 100644 --- a/modules/private-cluster/cluster.tf +++ b/modules/private-cluster/cluster.tf @@ -124,7 +124,7 @@ resource "google_container_cluster" "primary" { } lifecycle { - ignore_changes = [node_pool, initial_node_count] + ignore_changes = [node_pool, initial_node_count, resource_labels["asmv"], resource_labels["mesh_id"]] } timeouts {