pulumi/pkg/resource/deploy/providers
Fraser Waters a0e0208dd1
Change parameterization to be bytes based (#16606)
Making this change has a couple of benefits.

Firstly (and honestly the main one) is it make codegen much simpler. We
just to emit a base64 string and/or other embedded byte array to the
generated SDK. Currently we need emit a full `proto.Value` expression
for each language, and that's not hard but it's also not trivial and
means more combinations of things per test per language.

Secondly it will allow providers to use more efficient encodings of
their parameter than JSON if there is one. I imagine some providers
might make the parameter value a protobuf message and parse that
(similar to what we do for transform functions), but they can easily
fallback to just treating the bytes as a JSON string if they want.

The only downside to this is the value is obfuscated in the generated
SDK and in the state file. Neither of those are really expected to be
viewed by users, so this feels like a minor loss.
2024-07-10 11:15:35 +00:00
..
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
provider.go Change parameterization to be bytes based (#16606) 2024-07-10 11:15:35 +00:00
provider_test.go Initial work for parameterized providers (#16281) 2024-06-10 17:28:47 +00:00
reference.go Allow anything in resource names (#14107) 2023-11-20 08:59:00 +00:00
reference_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
registry.go Change parameterization to be bytes based (#16606) 2024-07-10 11:15:35 +00:00
registry_test.go Normalize plugin.Provider methods to (Context, Request) -> (Response, error) (#16302) 2024-06-07 19:47:49 +00:00