Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jan 5, 2023

Conversation

mattparkes
Copy link
Contributor

Description

As per #2379, we manage the contents of the aws-auth ConfigMap with GitOps and ArgoCD.

The only issue we have is that ArgoCD automatically adds a label to every resource it updates and because lifecycle_ignore is only set on data we always have terraform wanting to remove the metadata.label added by ArgoCD (even though we have manage_aws_auth_configmap=false set, which semantically implies that this won't happen).

Motivation and Context

Fixes: #2379

Breaking Changes

This causes has no breaking changes.

How Has This Been Tested?

  • I have tested and validated these changes using our testing environment.
  • I have executed pre-commit run -a on my pull request

…tations to increase compatability with externally managed aws-auth ConfigMaps.
@bryantbiggs bryantbiggs changed the title feat: ignore changes to labels and annotations on on aws-auth ConfigMap feat: Ignore changes to labels and annotations on on aws-auth ConfigMap Jan 5, 2023
Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, thank you!

@bryantbiggs bryantbiggs merged commit 5015b42 into terraform-aws-modules:master Jan 5, 2023
antonbabenko pushed a commit that referenced this pull request Jan 5, 2023
## [19.5.0](v19.4.3...v19.5.0) (2023-01-05)

### Features

* Ignore changes to labels and annotations on on `aws-auth` ConfigMap ([#2380](#2380)) ([5015b42](5015b42))
@antonbabenko
Copy link
Member

This PR is included in version 19.5.0 🎉

@github-actions
Copy link

github-actions bot commented Feb 5, 2023

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make manage_aws_auth_configmap=false also ignore metadata
3 participants