Skip to content

Commit

Permalink
Briefly mention how fn-pandt relates to legacy P&T
Browse files Browse the repository at this point in the history
Signed-off-by: Nic Cope <nicc@rk0n.org>
  • Loading branch information
negz committed Aug 23, 2024
1 parent 4d6772b commit dd01aa1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/master/guides/function-patch-and-transform.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ A [patch](#create-a-patch) copies a value from one resource and _patches_ it
onto another resource. A [transform](#transform-a-patch) modifies the values
before applying the patch.

{{<hint "tip" >}}
All Compositions used Patch and Transform before Crossplane added
support for composition functions.

Function Patch and Transform works like legacy `mode: Resources` Compositions,
which Crossplane deprecated in v1.17. The difference is that it uses a
`mode: Pipeline` Composition and a function instead of a `mode: Resources`
Composition.
{{< /hint >}}

Here's an example Composition that uses Function Patch and Transform. When you
create an `AcmeBucket` XR that uses this Composition, Crossplane uses the
template to create the Amazon S3 `Bucket` MR.
Expand Down

0 comments on commit dd01aa1

Please sign in to comment.