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

Fix update plans with dependent replacements #11009

Merged
merged 1 commit into from Nov 1, 2022

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Oct 13, 2022

Description

We weren't correctly handling the case where a resource was marked for deletion due to one of it's dependencies being deleted. We would add an entry to it's "Ops" list, but then overwrite that "Ops" list when we came to generate the recreation step.

Fixes #10924

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

We weren't correctly handling the case where a resource was marked for
deletion due to one of it's dependencies being deleted. We would add an
entry to it's "Ops" list, but then overwrite that "Ops" list when we
came to generate the recreation step.

Fixes #10924
@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2022-10-13)

Bug Fixes

  • [engine] Fix a bug in update plans handling resources being replaced due to other resources being deleted before replacement.
    #11009

Copy link
Contributor

@Zaid-Ajaj Zaid-Ajaj left a comment

Choose a reason for hiding this comment

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

Read through the test case, looks good!

@Frassle
Copy link
Member Author

Frassle commented Nov 1, 2022

bors merge

@bors
Copy link
Contributor

bors bot commented Nov 1, 2022

Build succeeded:

@bors bors bot merged commit 1ccfa9f into master Nov 1, 2022
@bors bors bot deleted the fraser/fixUpdatePlanDeleteReplaced branch November 1, 2022 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update plan error: delete-replaced is not allowed by the plan: this resource is constrained to replace
3 participants