pulumi/sdk/proto/go
Anton Tayanovskyy 70b144d8c3
Document news ignore changes processing in the provider protocol (#16725)
This change adds comments in the protobuf definitions of the
Engine<->Provider protocol to highlight that the `news` value passed to
the provider may be influenced by the state, specifically the old inputs
stored in the state, in an Update scenario, and pre-processed to
implement ignoreChanges at the engine level. This was not entirely
obvious when analyzing provider behavior, and it helps having this
documented in the proto files.

Note that this is especially confusing since the engine is also passing
ignoreChanges to the provider as if to say "please implement it on your
end". This is indeed something that is used to suppress any residual
diffs, say in Terraform-bridged providers, but what's not obvious is
that the engine performs a bit of processing here already.

The relevant implementation seems to be around
https://github.com/pulumi/pulumi/blame/master/pkg/resource/deploy/step.go#L1407

---------

Co-authored-by: Ian Wahbe <ian@wahbe.com>
2024-07-29 14:28:39 +00:00
..
codegen Clean up unused import warnings (#15581) 2024-03-04 13:01:25 +00:00
testing Add SupportPack to schemas to write out in the new style (#15713) 2024-03-22 09:25:46 +00:00
alias.pb.go Support subdirectories in proto 2023-03-05 16:05:58 +00:00
analyzer.pb.go Plumb Remote, Component, and LogicalName into the import plugin system (#15199) 2024-01-24 17:15:30 +00:00
analyzer_grpc.pb.go Plumb Remote, Component, and LogicalName into the import plugin system (#15199) 2024-01-24 17:15:30 +00:00
callback.pb.go Clean up unused import warnings (#15581) 2024-03-04 13:01:25 +00:00
callback_grpc.pb.go Engine support for remote transforms (#15290) 2024-02-21 16:30:46 +00:00
converter.pb.go Clean up unused import warnings (#15581) 2024-03-04 13:01:25 +00:00
converter_grpc.pb.go Add converter plugin 2023-03-09 22:16:21 +00:00
engine.pb.go Plumb Remote, Component, and LogicalName into the import plugin system (#15199) 2024-01-24 17:15:30 +00:00
engine_grpc.pb.go Plumb Remote, Component, and LogicalName into the import plugin system (#15199) 2024-01-24 17:15:30 +00:00
errors.pb.go Support subdirectories in proto 2023-03-05 16:05:58 +00:00
language.pb.go [cli/import] Fix undefined variable errors in code generation when imported resources use a parent or provider (#16786) 2024-07-25 13:53:44 +00:00
language_grpc.pb.go Query language runtime for options during “pulumi new” (#16346) 2024-06-17 17:10:55 +00:00
plugin.pb.go Allow language plugins to return plugin checksums (#13776) 2023-08-25 15:26:25 +00:00
provider.pb.go Document news ignore changes processing in the provider protocol (#16725) 2024-07-29 14:28:39 +00:00
provider_grpc.pb.go Add Paramaterize to provider interface (#16174) 2024-05-15 16:22:39 +00:00
resource.pb.go Add parameterized `Call` support to the engine (#16813) 2024-07-26 15:36:53 +00:00
resource_grpc.pb.go implement engine support for invoke transforms (#16559) 2024-07-11 16:01:44 +00:00
source.pb.go [engine] Add support for source positions 2023-07-10 14:35:40 -07:00