mirror of https://github.com/pulumi/pulumi.git
![]() * Implement first-class providers for Python First-class providers are an explicit projection of providers themselves into Pulumi programs. For the most post, providers are just regular resources, but the addition of providers to the fray (and the ability of resources to be constructed by providers in the same program) requires some changes to the Python resource model. A summary of the changes: 1. Added ProviderResource, a custom resource that is the base class of all providers. 2. ResourceOptions now has 'provider' and 'providers' fields. 'provider', when passed to a custom resource, allows users to override the provider that is used to construct a resource to an instance of a ProviderResource. 'providers', when passed to a component resource, allows users to override providers used to construct children of the component resource. 3. 'protect', 'providers', and 'provider' are all now inherited from a resource's parent if they aren't specified in the child. This commit adds the requisite code for the above changes and, in addition, adds a number of new tests that exercise them and related code paths. * Rebase against master |
||
---|---|---|
.. | ||
__init__.py | ||
__main__.py | ||
test_resource_thens.py |