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

Configure providers during a destroy plan #31176

Merged
merged 2 commits into from
Jun 13, 2022

Conversation

jbardin
Copy link
Member

@jbardin jbardin commented Jun 1, 2022

In order to correctly call UpgradeResourceState during a destroy plan, the provider provider must be configured. Now that the destroy plan can completely evaluate the provider configuration, enable the call to ConfigureProvider during that plan.

Fixes #30460

jbardin added 2 commits June 1, 2022 16:03
Now that we can fully evaluate a provider configuration, make sure we
configure the provider before using it during a destroy plan.
We do this already for other calls, but skipped UpgradeResourceState
since it wasn't previously possible to configure during a destroy plan.
@jbardin jbardin requested a review from a team June 1, 2022 20:34
@jbardin jbardin self-assigned this Jun 10, 2022
@jbardin jbardin merged commit 256b113 into main Jun 13, 2022
@jbardin jbardin deleted the jbardin/plan-destroy-configure-provider branch June 13, 2022 13:05
@github-actions
Copy link
Contributor

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
Contributor

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 Jul 14, 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.

Spurious "UpgradeResourceState" call during "destroy" workflow
2 participants