From 5015b429e656d927fb66f214c998713c6fc84755 Mon Sep 17 00:00:00 2001 From: Matt Parkes Date: Fri, 6 Jan 2023 03:32:23 +1000 Subject: [PATCH] feat: Ignore changes to labels and annotations on on `aws-auth` ConfigMap (#2380) Co-authored-by: Bryant Biggs Fixes https://github.com/terraform-aws-modules/terraform-aws-eks/issues/2379 --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index e94231e..4f0ffb6 100644 --- a/main.tf +++ b/main.tf @@ -520,7 +520,7 @@ resource "kubernetes_config_map" "aws_auth" { lifecycle { # We are ignoring the data here since we will manage it with the resource below # This is only intended to be used in scenarios where the configmap does not exist - ignore_changes = [data] + ignore_changes = [data, metadata[0].labels, metadata[0].annotations] } }