pulumi/pkg/resource/deploy
Luke Hoban 2067e27ee6
Avoid configuring providers twice during preview (#4004)
In the very common case where provider configuration does not change, during preview we were calling `Configure` on the cloud provider twice - once for the "old" configuration, and once for the "new" configuration.

This is not necessary, and we can just avoid using the new provider when configuration has not changed, since we will have configured the old provider very early so if we can use that we should.

Note that this technically doesn't prevent the second call to `Configure` from being made, but it prevents us from ever waiting on it.  We may want to go further and avoid even calling `Configure` on the provider in this case.

Part of #3671.
2020-03-01 14:41:46 -08:00
..
deploytest Add support for extracting schemas from providers. (#3984) 2020-02-27 16:10:47 -08:00
providers Avoid configuring providers twice during preview (#4004) 2020-03-01 14:41:46 -08:00
builtins.go Add support for extracting schemas from providers. (#3984) 2020-02-27 16:10:47 -08:00
plan.go Loosen resource targeting restrictions. (#3426) 2019-11-18 20:28:25 -08:00
plan_executor.go Show errors when analyzing the stack (#3624) 2019-12-12 22:26:27 +00:00
plan_test.go Retain the SecretsManager that was used to deserialize a deployment 2019-05-10 17:07:52 -07:00
snapshot.go error instead of panic when different resources use the same alias (#3457) 2019-11-06 08:49:13 -08:00
source.go Propagate inputs to outputs during preview. (#3327) 2019-11-11 12:09:34 -08:00
source_error.go Use result.Result in more places. (#2568) 2019-03-19 16:21:50 -07:00
source_eval.go Propagate inputs to outputs during preview. (#3327) 2019-11-11 12:09:34 -08:00
source_eval_test.go Allow users to explicitly disable delete-before-replace. (#3118) 2019-08-20 15:51:02 -07:00
source_fixed.go Use result.Result in more places. (#2568) 2019-03-19 16:21:50 -07:00
source_null.go Use result.Result in more places. (#2568) 2019-03-19 16:21:50 -07:00
source_query.go Don't send spurious empty stream invoke response 2019-11-12 13:51:19 -08:00
source_query_test.go Allow provider loading in `query` mode 2019-10-23 15:14:56 -07:00
step.go Loosen resource targeting restrictions. (#3426) 2019-11-18 20:28:25 -08:00
step_executor.go Loosen resource targeting restrictions. (#3426) 2019-11-18 20:28:25 -08:00
step_generator.go Fix panic on failed stack policy (#3960) 2020-02-24 07:04:35 -08:00
step_generator_test.go Pass ignoreChanges to providers. (#3005) 2019-07-31 11:39:07 -05:00
target.go Allow provider loading in `query` mode 2019-10-23 15:14:56 -07:00