Skip to content

Commit fb597eb

Browse files
authored
Merge pull request #62 from jbw976/mix-and-patch
add simple guidance for including results from previous functions
2 parents e8b8d78 + 1d3ff7b commit fb597eb

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)