pulumi/pkg/resource/deploy
bors[bot] 46380d4cea
Merge #12939
12939: Untargeted resources now have update plans. r=dixler a=dixler

Fixes #12926

# What
This change modifies the step_generator to include untargeted resources in plans.

# Why
This prevents the step_executor from erroring from an untargeted resource being registered.

The `step_executor` would error due to an untargeted resource being registered while not being included in the update plan.

This appeared to be applicable only to users using update plans, but update plans are enabled by default internally.

There are some rare cases where they are not such as if `--skip-preview` is set, or if using `pulumi up` with URLs or Templates without PULUMI_EXPERIMENTAL being truthy.

# Previous Context
This error previously appeared in #12824 and was believed to be due to the root stack resource not being targeted in liue of informative error messages.

A fix was merged in:

https://github.com/pulumi/pulumi/pull/12834

This also contained an enhanced error message containing the offending URN of the resource.

The fix was shipped in 3.67.0, but #12926 was opened with the new error message indicating that the problem was still outstanding and it was applicable to resources that weren't the root stack resource.

Co-authored-by: Kyle Dixler <kyle@pulumi.com>
2023-05-15 14:12:35 +00:00
..
deploytest gRPC for GenerateProject/Program/Package 2023-05-06 13:14:59 +01:00
providers pkg/providers: Extract plugin installation to pkg/workspace 2023-05-12 11:03:52 -07:00
builtins.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
deployment.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
deployment_executor.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
deployment_executor_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
deployment_test.go Remove source_fixed 2022-11-08 15:55:45 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
import.go This commit adds the `Created` and `Modified` timestamps to pulumi state that are optional. 2023-03-27 09:28:26 -07:00
manifest.go Split Manifest type to it's own file (#8712) 2022-01-10 12:25:24 +00:00
plan.go all: Fix revive issues 2023-03-21 08:55:11 -07:00
snapshot.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
snapshot_test.go all: Fix revive issues 2023-03-21 08:55:11 -07:00
source.go Monitor.Invoke and Provider.Invoke take different arguments (#9323) 2022-04-14 10:59:46 +01:00
source_error.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
source_eval.go engine: Propagate options to MLCs 2023-04-21 10:58:57 -07:00
source_eval_test.go engine: Propagate options to MLCs 2023-04-21 10:58:57 -07:00
source_null.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
source_query.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
source_query_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
state_builder.go all: Fix revive issues 2023-03-21 08:55:11 -07:00
state_builder_test.go Non-mutating snapshot normalization (#10128) 2022-07-18 14:04:19 -04:00
step.go `--target` now only creates Providers if targeted in step generation 2023-04-28 11:25:17 -07:00
step_executor.go Fix targeted-replace and update plans. 2023-05-09 07:48:53 -07:00
step_generator.go Untargeted resources now have update plans. 2023-05-15 07:10:44 -07:00
step_generator_test.go Revert PR moving deletedWith inheritance logic to the engine as `get` resources and MLCs are incompatible. 2023-03-30 10:18:27 -07:00
target.go Add getOrganization to nodejs and python (#10504) 2022-08-31 10:33:29 +01:00