Skip to content

Commit

Permalink
expose detailed diff interface
Browse files Browse the repository at this point in the history
  • Loading branch information
VenelinMartinov committed Nov 18, 2024
1 parent c073deb commit f2bec29
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pkg/tfbridge/detailed_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,16 @@ func (differ detailedDiffer) makeDetailedDiffPropertyMap(
return result
}

func MakeDetailedDiffV2(
ctx context.Context,
tfs shim.SchemaMap,
ps map[string]*SchemaInfo,
priorProps, props, newInputs resource.PropertyMap,
) map[string]*pulumirpc.PropertyDiff {
differ := detailedDiffer{ctx: ctx, tfs: tfs, ps: ps, newInputs: newInputs}
return differ.makeDetailedDiffPropertyMap(priorProps, props)
}

func makeDetailedDiffV2(
ctx context.Context,
tfs shim.SchemaMap,
Expand Down Expand Up @@ -506,6 +516,5 @@ func makeDetailedDiffV2(
return nil, err
}

differ := detailedDiffer{ctx: ctx, tfs: tfs, ps: ps, newInputs: newInputs}
return differ.makeDetailedDiffPropertyMap(priorProps, props), nil
return MakeDetailedDiffV2(ctx, tfs, ps, priorProps, props, newInputs), nil
}

0 comments on commit f2bec29

Please sign in to comment.