mirror of https://github.com/pulumi/pulumi.git
a92101cd49
This new method is used to return the state of the resource monitor for a deployment directly to a client. This helps with three major areas: 1) `Construct` and `Call` no longer need to be kept up to date with any new features added to `Run`. All they need is the resource monitor target and can use `GetState` to fetch all other information. 2) We no longer need to find a way to pass all the information from `Run` from the runtime host to the runtime SDKs. Instead all we need to pass is the (again) the resource monitor target, and on startup the SDK can fetch the rest of the information over gRPC. In fact we don't even need to add new information to `Run`, as the language runtime host can also just use `GetState` to fetch the latest information. 3) Features are now a safe enumeration lookup rather than a set of strings that could be typo'd. Further you don't need to make multiple roundtrips to see all features supported, the entire set is returned at once. A few things need pointing out about this change. Firstly SDKs that use this _also_ need to have a fallback to using the old envvar based approch because they might be running against an old engine version. Secondly this PR doesn't update any of the SDKs to use this. The most obvious candidate to update first is YAML as that doesn't actually have an SDK, just the host and the host _doesn't_ need to be backward compatible because we always tie host and engine versions together in a single release. |
||
---|---|---|
.. | ||
codegen | ||
testing | ||
alias.pb.go | ||
analyzer.pb.go | ||
analyzer_grpc.pb.go | ||
converter.pb.go | ||
converter_grpc.pb.go | ||
engine.pb.go | ||
engine_grpc.pb.go | ||
errors.pb.go | ||
language.pb.go | ||
language_grpc.pb.go | ||
plugin.pb.go | ||
provider.pb.go | ||
provider_grpc.pb.go | ||
resource.pb.go | ||
resource_grpc.pb.go | ||
source.pb.go |