File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -483,6 +483,12 @@ func MakeDetailedDiffV2(
483483 ps map [string ]* SchemaInfo ,
484484 priorProps , props , newInputs resource.PropertyMap ,
485485) map [string ]* pulumirpc.PropertyDiff {
486+ // Strip secrets and outputs from the properties before calculating the diff.
487+ // This allows the rest of the algorithm to focus on the actual changes and not
488+ // have to deal with the extra noise.
489+ // This is safe to do here because the detailed diff we return to the engine
490+ // is only represented by paths to the values and not the values themselves.
491+ // The engine will then takes care of masking secrets.
486492 stripSecretsAndOutputs := func (props resource.PropertyMap ) resource.PropertyMap {
487493 propsVal := propertyvalue .RemoveSecretsAndOutputs (resource .NewProperty (props ))
488494 return propsVal .ObjectValue ()
You can’t perform that action at this time.
0 commit comments