pulumi/pkg/engine
Pat Gavlin 2f0dba23ab
Fix resource-ref-as-ID marshaling. (#6125)
When marshaling a resource reference as its ID (i.e. when
opts.KeepResources is false, as it will be in the case of downlevel SDKs
and resource providers), we must take care to marshal/unmarshal an empty
ID as the unknown property value.

This includes the following changes to the resource ref APIs:

- Bifurcate resource reference creation into two methods: one for
  creating references to custom resources and one for creating
  references to component resources.
- Store the ID in a resource reference as a PropertyValue s.t. it can be
  computed.
- Add a helper method for retrieving the ID as a string + an indicator of
  whether or not the reference has an ID.

Fixes #5939.
2021-01-15 16:06:57 -08:00
..
lifeycletest Fix resource-ref-as-ID marshaling. (#6125) 2021-01-15 16:06:57 -08:00
deployment.go Improve resource ref unit tests. (#5960) 2020-12-16 12:38:20 -08:00
destroy.go Rename engine.plan to engine.deployment. (#5777) 2020-11-18 11:16:30 -08:00
diff.go Protect against engine event mutation. (#5003) 2020-07-16 23:52:31 -07:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
engine.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
errors.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
events.go Fix resource-ref-as-ID marshaling. (#6125) 2021-01-15 16:06:57 -08:00
eventsink.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
import.go Rename engine.plan to engine.deployment. (#5777) 2020-11-18 11:16:30 -08:00
journal.go Refactor lifecycle tests. (#5575) 2020-10-15 10:35:09 -07:00
plugin_host.go Revise host mode. (#5317) 2020-09-14 17:40:17 -07:00
plugins.go .NET: Report plugin install errors during pulumi new (#5760) 2020-11-16 21:56:13 -08:00
plugins_test.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
project.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
query.go .NET: Report plugin install errors during pulumi new (#5760) 2020-11-16 21:56:13 -08:00
refresh.go Rename engine.plan to engine.deployment. (#5777) 2020-11-18 11:16:30 -08:00
snapshot.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
update.go Improve resource ref unit tests. (#5960) 2020-12-16 12:38:20 -08:00
update_test.go Improve PP naming for local PPs (#3839) 2020-01-30 13:31:41 -08:00