function-template-python/example
Nic Cope cf90450981 Use a more illustrative default example
Emitting a hello world result isn't very useful. Instead, show how to
compose an MR with some fields derived from the XR and some from the
input.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-10-09 21:44:22 -07:00
..
README.md Add a 'development' convenience script 2024-01-11 14:17:25 -08:00
composition.yaml Use a more illustrative default example 2024-10-09 21:44:22 -07:00
functions.yaml Add function-template-python 2023-11-21 18:24:54 -08:00
xr.yaml Add function-template-python 2023-11-21 18:24:54 -08:00

README.md

Example manifests

You can run your function locally and test it using crossplane beta render with these example manifests.

# Run the function locally
$ hatch run development
# Then, in another terminal, call it with these example manifests
$ crossplane beta render xr.yaml composition.yaml functions.yaml -r
---
apiVersion: example.crossplane.io/v1
kind: XR
metadata:
  name: example-xr
---
apiVersion: render.crossplane.io/v1beta1
kind: Result
message: I was run with input "Hello world"!
severity: SEVERITY_NORMAL
step: run-the-template