Skip to content

Commit

Permalink
Link to common functions
Browse files Browse the repository at this point in the history
We might want to update these to marketplace links once they're
available.

Signed-off-by: Nic Cope <[email protected]>
  • Loading branch information
negz committed Oct 28, 2023
1 parent 023893b commit ce03978
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions content/master/concepts/composition-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Install a Function with a Crossplane
location of the function package.


For example, to install Function Patch and Transform,
For example, to install [Function Patch and Transform](https://github.com/crossplane-contrib/function-patch-and-transform),

```yaml {label="install"}
apiVersion: pkg.crossplane.io/v1beta1
Expand Down Expand Up @@ -111,10 +111,11 @@ line="10">}}function-patch-and-transform{{</hover>}}.
Some Functions allow you to specify an {{<hover label="single"
line="11">}}input{{</hover>}}. Different Functions each have a different
{{<hover label="single" line="13">}}kind{{</hover>}} of input. This example uses
Function Patch and Transform. Function Patch and Transform is a function that
implements Crossplane resource templates. Its input kind is `Resources`, and it
accepts [Patch and Transform]({{<ref "./patch-and-transform">}}) {{<hover
label="single" line="14">}}resources{{</hover>}} as input.
[Function Patch and Transform](https://github.com/crossplane-contrib/function-patch-and-transform).
Function Patch and Transform is a function that implements Crossplane resource
templates. Its input kind is `Resources`, and it accepts [Patch and
Transform]({{<ref "./patch-and-transform">}}) {{<hover label="single"
line="14">}}resources{{</hover>}} as input.

```yaml {label="single",copy-lines="none"}
apiVersion: apiextensions.crossplane.io/v1
Expand Down Expand Up @@ -324,8 +325,11 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1beta1.RunFunctionRequ
```

Some people design composition functions for you to use them with any kind of
composite resource. Function Patch and Transform and Function Auto Ready work
with any kind of composite resource.
composite resource.
[Function Patch and Transform](https://github.com/crossplane-contrib/function-patch-and-transform)
and
[Function Auto Ready](https://github.com/crossplane-contrib/function-auto-ready)
work with any kind of composite resource.

Another common pattern is to write a composition function specific to one kind
of composite resource. The function contains all the logic needed to tell
Expand Down

0 comments on commit ce03978

Please sign in to comment.