pulumi/pkg/engine/lifecycletest
Thomas Gummerer bc744d2ae5
create unknowns when the provider is not known during construct (#16868)
Currently when a provider is not known when trying to call construct, we
error out. A provider not being known can however legitimately happen
during a preview, for example when setting up an eks cluster, and then
using that kubeconfig to set up a kubernetes provider.

Users can currently work around that by using `--skip-preview`, and only
going through the actual up, where the provider is known. This is
however not a great user experience.

Return a specific error from the provider Construct call, which we can
then use in the resource monitor to fake constructing a resource with
all unknown outputs. This way the preview can still succeed, but any
dependencies will also end up being unknown.

Fixes https://github.com/pulumi/pulumi/issues/16331
2024-08-19 07:47:31 +00:00
..
testdata Ensure internal provider state doesn't clash with user config (#16837) 2024-07-30 12:22:32 +00:00
alias_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
analyzer_test.go Add display to the engine tests (#16050) 2024-05-13 07:18:25 +00:00
continue_on_error_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
delete_before_replace_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
golang_sdk_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
import_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
parameterized_test.go Ensure internal provider state doesn't clash with user config (#16837) 2024-07-30 12:22:32 +00:00
pending_delete_test.go Add display to the engine tests (#16050) 2024-05-13 07:18:25 +00:00
pending_replace_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
provider_test.go Ensure internal provider state doesn't clash with user config (#16837) 2024-07-30 12:22:32 +00:00
pulumi_test.go create unknowns when the provider is not known during construct (#16868) 2024-08-19 07:47:31 +00:00
refresh_legacy_diff_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
refresh_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
resource_reference_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
retain_on_delete_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
source_query_test.go Add parameterized `Call` support to the engine (#16813) 2024-07-26 15:36:53 +00:00
step_generator_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
target_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
test_plan.go Normalize plugin.Provider methods to (Context, Request) -> (Response, error) (#16302) 2024-06-07 19:47:49 +00:00
transformation_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00
update_plan_test.go Update lifecycle test APIs to match provider APIs (#16793) 2024-07-26 12:14:45 +00:00