Skip to content

Commit 1d3ff7b

Browse files
committed
add simple guidance for including results from previous functions
Signed-off-by: Jared Watts <jbw976@gmail.com>
1 parent 75b5a45 commit 1d3ff7b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,14 @@ With this function you can use P&T with other functions. For example you can
5757
create a desired resource using the [Go Templating][fn-go-templating] function,
5858
then patch the result using this function.
5959

60+
To include results from previous functions, simply provide a `resources` entry
61+
for each and specify a `name` field that matches the name of the resource from
62+
the previous function. Also, do not specify any value for the `base` field of
63+
each resource.
64+
6065
It's not just patches either. You can use P&T to derive composite resource
6166
connection details from a resource produced by another function, or use it to
62-
determine whether a resource produced by another function is ready
67+
determine whether a resource produced by another function is ready.
6368

6469
### Decouple P&T development from Crossplane core
6570

0 commit comments

Comments
 (0)