pulumi/tests/integration/stack_parenting
Pat Gavlin 58a75cbbf4
Pull default options from a resource's parent. (#1748)
If a resource's options bag does not specify `protect` or `provider`,
pull a default value from the resource's parent.

In order to allow a parent resource to specify providers for multiple
resource types, component resources now accept an optional map from
package name to provider instance. When a custom resource needs a
default provider from its parent, it checks its parent provider bag for
an entry under its package. If a component resource does not have a
provider bag, its pulls a default from its parent.

These changes also add a `parent` field to `InvokeOptions` s.t. calls to
invoke can use the same behavior as resource creation w.r.t. providers.

Fixes #1735, #1736.
2018-08-10 16:18:21 -07:00
..
.gitignore Remove yarn.lock from .gitignore 2018-01-30 14:46:44 -08:00
index.ts Pull default options from a resource's parent. (#1748) 2018-08-10 16:18:21 -07:00
package.json Use new native typescript support in many tests 2018-08-06 14:00:58 -07:00
Pulumi.yaml Fix pending delete replacement failure (#658) 2017-12-07 09:44:38 -08:00
yarn.lock Run yarn upgrade and commit all resulting lockfiles 2018-01-30 14:46:44 -08:00