Skip to content

Preserve null tags if not configured to prevent apply errors#8

Merged
ewgenius merged 1 commit into
trunkfrom
evgenii/2025-12-18/fix-tags
Dec 18, 2025
Merged

Preserve null tags if not configured to prevent apply errors#8
ewgenius merged 1 commit into
trunkfrom
evgenii/2025-12-18/fix-tags

Conversation

@ewgenius
Copy link
Copy Markdown
Collaborator

@ewgenius ewgenius commented Dec 18, 2025

This pull request updates the logic for mapping tags in the AppResource to better handle cases where tags are not configured by the user. The main change ensures that if the tags field is null in the configuration, it remains null in the model, which helps prevent "inconsistent result after apply" errors.

Improvements to tag mapping logic:

  • Updated the mapAppToModel function in resource_app.go to only update the Tags field if it was configured by the user, preserving null when tags are not set in the configuration. This avoids potential state drift and apply errors. [1] [2]

@ewgenius ewgenius self-assigned this Dec 18, 2025
@ewgenius ewgenius merged commit fa60993 into trunk Dec 18, 2025
14 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 17, 2026
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.

1 participant