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 don't lose checks from refresh-only plan into v1.3 #32143

Merged

Conversation

teamterraform
Copy link
Contributor

Backport

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

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


If there are no changes in a given plan, then there is no reason to create and walk a full apply graph since all objects are known. This means that an apply operation of a refresh plan should only entail returning the planned state.

We however do still need the walk to apply output changes which are recorded in the plan, and some vestigial cleanup is done during the apply walk. In the future, copying the planned output values and cleaning up the state could be done outside the walk, but we will leave that for later pending investigation into any other unexpected side effects it may cause.

For now to ensure refreshed checks are stored correctly, copy the planned checks into the final state after the apply walk.

@teamterraform teamterraform force-pushed the backport/jbardin/apply-refresh-plan/vertically-helping-urchin branch from 276b5fa to a74b0f9 Compare November 2, 2022 15:07
@teamterraform teamterraform force-pushed the backport/jbardin/apply-refresh-plan/vertically-helping-urchin branch from 0364977 to e6fa125 Compare November 2, 2022 15:07
@jbardin jbardin merged commit db49c26 into v1.3 Nov 2, 2022
@jbardin jbardin deleted the backport/jbardin/apply-refresh-plan/vertically-helping-urchin branch November 2, 2022 15:16
@github-actions
Copy link

github-actions bot commented Nov 2, 2022

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

@github-actions
Copy link

github-actions bot commented Dec 3, 2022

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 3, 2022
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.

None yet

2 participants