GitHub - crossplane/function-template-python: A template for writing a composition function in Python (original) (raw)

Run the code in development mode, for crossplane beta render

hatch run development

Lint and format the code - see pyproject.toml

hatch fmt

Run unit tests - see tests/test_fn.py

hatch test

Build the function's runtime image - see Dockerfile

$ docker build . --tag=runtime

Build a function package - see package/crossplane.yaml

$ crossplane xpkg build -f package --embed-runtime-image=runtime