mirror of https://github.com/pulumi/pulumi.git
1ccfa9fdc4
11009: Fix update plans with dependent replacements r=Frassle a=Frassle <!--- Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation. --> # Description <!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. --> 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 https://github.com/pulumi/pulumi/issues/10924 ## Checklist <!--- Please provide details if the checkbox below is to be left unchecked. --> - [x] I have added tests that prove my fix is effective or that my feature works <!--- User-facing changes require a CHANGELOG entry. --> - [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change <!-- If the change(s) in this PR is a modification of an existing call to the Pulumi Service, then the service should honor older versions of the CLI where this change would not exist. You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add it to the service. --> - [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. --> 11027: Do not execute pending deletes at the start of deployment r=Frassle a=Frassle <!--- Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation. --> # Description <!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. --> This removes all the handling of pending deletes from the start of deployments. Instead we allow resources to just be deleted as they usually would at the end of the deployment. There's a big comment in TestPendingDeleteOrder that explains the order of operations in a succesful run and how that order differs if we try and do pending deletes up-front. Fixes https://github.com/pulumi/pulumi/issues/2948 ## Checklist <!--- Please provide details if the checkbox below is to be left unchecked. --> - [x] I have added tests that prove my fix is effective or that my feature works <!--- User-facing changes require a CHANGELOG entry. --> - [ ] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change <!-- If the change(s) in this PR is a modification of an existing call to the Pulumi Service, then the service should honor older versions of the CLI where this change would not exist. You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add it to the service. --> - [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. --> Co-authored-by: Fraser Waters <fraser@pulumi.com> |
||
---|---|---|
.. | ||
about | ||
aliases | ||
cloud_secrets_provider | ||
component_provider_schema | ||
config_basic | ||
config_capture_e2e/nodejs | ||
config_secrets_warn | ||
construct_component | ||
construct_component_error_apply | ||
construct_component_methods | ||
construct_component_methods_errors | ||
construct_component_methods_resources | ||
construct_component_methods_unknown | ||
construct_component_output_values | ||
construct_component_plain | ||
construct_component_provider | ||
construct_component_slow | ||
construct_component_unknown | ||
construct_nested_component/go | ||
custom_timeouts | ||
delete_before_create | ||
dependency_steps | ||
double_pending_delete | ||
duplicate_urns | ||
dynamic | ||
ee_perf | ||
empty | ||
enums | ||
exclude_protected | ||
explicit_provider | ||
gather_plugin | ||
get_created | ||
get_resource | ||
go | ||
invalid_package_json | ||
large_resource | ||
nodejs | ||
partial_state | ||
partial_values | ||
policy | ||
printf | ||
project_main | ||
project_main_abs | ||
project_main_parent/foo | ||
protect_resources | ||
provider_secret_config | ||
python | ||
python_await | ||
query | ||
read | ||
recreate_resource_check | ||
refresh/go | ||
rotate_passphrase | ||
secret_outputs | ||
single_resource | ||
stack_bad_parenting | ||
stack_component | ||
stack_dependencies | ||
stack_outputs | ||
stack_parenting | ||
stack_project_name | ||
stack_reference | ||
stack_reference_multi/python | ||
stack_reference_secrets | ||
steps | ||
targets | ||
transformations | ||
tsconfig | ||
types | ||
unsafe_snapshot_tests/bad_resource | ||
.gitignore | ||
appdash_test.go | ||
component_setup.sh | ||
integration_dotnet_smoke_test.go | ||
integration_dotnet_test.go | ||
integration_go_smoke_test.go | ||
integration_go_test.go | ||
integration_nodejs_smoke_test.go | ||
integration_nodejs_test.go | ||
integration_python_smoke_test.go | ||
integration_python_test.go | ||
integration_test.go |