diff --git a/content/master/cli/command-reference.md b/content/master/cli/command-reference.md index 97d36aa5..519ca652 100644 --- a/content/master/cli/command-reference.md +++ b/content/master/cli/command-reference.md @@ -388,6 +388,7 @@ spec: | | `--context-files==,=` | A comma separated list of files to load for function "contexts." | | | `--context-values==,=` | A comma separated list of key-value pairs to load for function "contexts." | | `-r` | `--include-function-results` | Include the "results" or events from the function. | +| `-x` | `--include-full-xr` | Include a copy of the input Composite Resource spec and metadata fields in the rendered output. | | `-o` | `--observed-resources=` | Provide artificial managed resource data to the function. | | | `--timeout=` | Amount of time to wait for a function to finish. | {{< /table >}} @@ -409,6 +410,15 @@ If a function produces Kubernetes events with statuses use the `--include-function-results` to print them along with the managed resource outputs. +#### Include the composite resource + +Composition functions can only change the `status` field of a composite +resource. By default, the `crossplane beta render` command only prints the +`status` field with `metadata.name`. + +Use `--include-full-xr` to print the full composite resource, +including the `spec` and `metadata` fields. + #### Mock managed resources Provide mocked, or artificial data representing a managed resource with