feat: Ignore changes to labels and annotations on on aws-auth ConfigMap (#2380)

Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
Fixes https://github.com/terraform-aws-modules/terraform-aws-eks/issues/2379
This commit is contained in:
Matt Parkes
2023-01-06 03:32:23 +10:00
committed by GitHub
parent 0868d0583f
commit 5015b429e6

View File

@@ -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]
}
}