crossplane / crossplane/docs

function-patch-and-transform example mutates composite metadata which is not supported

Open
#878 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
SCSS
Stars
60
Forks
163
Avg merge
15h 20m
Merged PRs (30d)
9

Description

### URL
[](https://docs.crossplane.io/latest/concepts/environment-configs/#enable-environmentconfigs:~:text=function%20documentation.-,Patch%20between%20Composite%20resource%20and%20environment,-To%20patch%20between)

### What's Wrong?
The example using `function-patch-and-transform` has ` `ToCompositeFieldPath` patch which modifies the composite metadata. This is valid in Legacy P&T but is not supported in `function-patch-and-transform`. The example should be patching to the composite `status` object instead.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.