pulumi/sdk
Pat Gavlin c6d22a25e5
gRPC bridge: fix unknowns in `Update` previews (#6006)
These changes are a combination of three commits, each of which
contributes to the testing and/or fixing of a problem with marshaling
unknowns in `plugin.provider.Update` when `preview` is true.

## deploytest: add support for gRPC adapters. 

These changes add support for communicating with providers using the
gRPC adapters to the deploytest pacakage. This makes it easier to test
the gRPC adapters across typical lifecycle patterns.

Supporting these changes are two additions to the `resource/plugin`
package:

1. A type that bridges between the `plugin.Provider` interface and the
  `pulumirpc.ResourceProviderServer`
2. A function to create a `plugin.Provider` given a
  `pulumirpc.ResourceProviderClient`

The deploytest package uses these to wrap an in-process
`plugin.Provider` in a gRPC interface and connect to it without using
the default plugin host, respectively.

## pulumi_test: test provider preview over gRPC.

Add a test that runs the provider preview lifecycle, but using a
provider that communicates over gRPC.

## gRPC bridge: fix unknowns in `Update` previews

Set the `KeepUnknowns` and `RejectUnknowns` bits in the `MarshalOptions`
used when unmarshaling update results to preserve unknowns during a
preview and reject them otherwise.

These changes also set the `RejectUnknowns` bit in the `MarshalOptions`
used by `Create` if `preview` is false, and fix a bug in the array
unmarshaler that could cause out-of-bounds accesses.

Fixes https://github.com/pulumi/pulumi/issues/6004.
2020-12-23 13:25:48 -08:00
..
dotnet Extensions to support input collection initializers with union types (#5938) 2020-12-14 20:33:53 +01:00
go gRPC bridge: fix unknowns in `Update` previews (#6006) 2020-12-23 13:25:48 -08:00
nodejs Use `beforeEach` in NodeJS tests. (#5975) 2020-12-18 16:27:27 -08:00
proto Add support for serialized resource references. (#5041) 2020-10-27 10:12:12 -07:00
python Fix virtual env path (#5992) 2020-12-21 17:46:56 -08:00
README.md Updating .NET references 2020-04-27 12:42:11 -07:00
go.mod Add a python shim script to work around https://github.com/golang/go/issues/42919 2020-12-07 14:17:45 -08:00
go.sum Add a python shim script to work around https://github.com/golang/go/issues/42919 2020-12-07 14:17:45 -08:00

README.md

Pulumi Language SDKs

This directory contains the Pulumi SDKs for all supported languages.

Please see the respective READMEs for information about installing and using these libraries:

The language providers work by implementing gRPC interfaces defined in proto/.