This project is now archived, please go to the triggermesh/triggermesh repository where development continues.
Function CRD is the experimental Triggermesh component that provides a way to deploy KLR functions without the requirement to build Docker images. At the moment, Function controller can run Python, Node JS and Ruby code.
Function object specification is straightforward:
-
runtime
- the name of the language runtime to use for this function, can bepython
,node
orruby
-
public
- boolean value when set totrue
makes the function endpoint accessible from the Internet. The default value isfalse
-
ceOverrides
- cloudevents overrides -
entrypoint
- the name of the function in the code to use as an entrypoint -
code
- inline source code of the Function
Function CRD can be compiled and deployed from source with ko:
ko apply -f ./config
You can verify that it's installed by checking that the controller is running:
$ kubectl -n function get pods -l app=function-controller
NAME READY STATUS RESTARTS AGE
function-controller-7446cc55bd-frchl 1/1 Running 0 3h26m
A custom resource of kind Function
can now be created, check
samples directory.
We would love your feedback and help on these sources, so don't hesitate to let us know what is wrong and how we could improve them, just file an issue or join those of use who are maintaining them and submit a PR
TriggerMesh Inc supports this project commercially, email info@triggermesh.com to get more details.
This plugin is by no means part of CNCF but we abide by its code of conduct