URL
https://docs.crossplane.io/latest/guides/function-patch-and-transform/#patch-a-composite-resource
What's Wrong?
The example shows a ToCompositeFieldPath patch using the composite metadata.labels for the path. This does not work in function-patch-and-transform since the function can only modify the composite status fields. The example should be modified to point at the composite status instead.