crossplane-contrib / function-patch-and-transform

A patch & transform composition function
https://crossplane.io
Apache License 2.0
23 stars 24 forks source link

Clarify `mergeOptions` to `toFieldPath` migration logic #112

Closed jbw976 closed 4 months ago

jbw976 commented 4 months ago

This PR updates the README to clarify and make more explicit the equivalent configuration between the no longer supported mergeOptions and the replacement toFieldPath. It took a bit of effort to figure out the conversion logic in https://github.com/crossplane/crossplane/pull/5464, so this PR is an attempt to update the README to make this more clear for future readers.

The paragraph form of non-exhaustive cases has been replaced by a table with all possible cases and one explicit example has been included to. Hopefully this new approach is more readable and understandable for folks 🙏