pulumi/pkg/engine
Kyle Dixler 6cf2b6e5ac
Untargeted resources now have update plans.
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.
2023-05-15 07:10:44 -07:00
..
lifecycletest Untargeted resources now have update plans. 2023-05-15 07:10:44 -07:00
deployment.go Pass PULUMI_CONFIG through to provider plugins 2023-04-05 10:17:18 +01:00
destroy.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
detailedDiff.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
detailedDiff_test.go [display] Refactor diff translation and display. (#9363) 2022-04-07 12:05:33 -07:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
engine.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
errors.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
events.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
events_test.go Do not panic when sending events to closed emitter (#10489) 2022-08-25 12:43:10 -04:00
eventsink.go chore: WriteString(Sprintf(..)) => Fprintf(..) 2023-03-01 13:22:33 -08:00
import.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
journal.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
plugin_host.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
plugins.go Skip trying to install the pulumi-resource-pulumi plugin 2023-05-11 09:22:31 +01:00
plugins_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
project.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
query.go Pass PULUMI_CONFIG through to provider plugins 2023-04-05 10:17:18 +01:00
refresh.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
snapshot.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
update.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
update_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00