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

Backport of Prefer KV tags, even when tags are defined as set into v1.10 #35978

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 8, 2024

Backport

This PR is auto-generated from #35937 to be assessed for backporting due to the inclusion of the label 1.10-backport.

The below text is copied from the body of the original PR.


Target Release

1.10.0

Fixes a bug in a the new cloud tags matching that duplicated tags in the backend when set tags are matched using kv bindings, or vice-versa.

In other words, if the workspace was found by set type tags in config, but the actual tags are KV tags, previously, terraform would detect that it should update the workspace with the tags unnecessarily, setting both workspace tags and kv tags. This also happens in the opposite sense: if kv tags are defined in config but matched to pre-existing workspace tags.

I changed the behavior to prefer setting kv tags if they are supported on the backend and evaluating both kinds of tags to determine if an update is needed, regardless of the desired tag provenance.


Overview of commits

@github-actions github-actions bot force-pushed the backport/TF-21807-both-types-of-tags-are-duplicated-when-found-and-subsequently-updated-by-the-cli/unlikely-glowing-dogfish branch from 99141c7 to aa9ca35 Compare November 8, 2024 19:46
@github-actions github-actions bot requested a review from brandonc November 8, 2024 19:46
@brandonc brandonc marked this pull request as ready for review November 8, 2024 19:52
@radeksimko radeksimko merged commit c9a2baf into v1.10 Nov 13, 2024
6 checks passed
@radeksimko radeksimko deleted the backport/TF-21807-both-types-of-tags-are-duplicated-when-found-and-subsequently-updated-by-the-cli/unlikely-glowing-dogfish branch November 13, 2024 14:39
Copy link
Contributor Author

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

Copy link
Contributor Author

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 contributions.
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 Dec 14, 2024
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.

3 participants