Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

triggermesh/function

Repository files navigation

This project is now archived, please go to the triggermesh/triggermesh repository where development continues.

Triggermesh Function

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.

Specification

Function object specification is straightforward:

  • runtime - the name of the language runtime to use for this function, can be python, node or ruby

  • public - boolean value when set to true makes the function endpoint accessible from the Internet. The default value is false

  • ceOverrides - cloudevents overrides

  • entrypoint - the name of the function in the code to use as an entrypoint

  • code - inline source code of the Function

Installation

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.

Support

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

Commercial Support

TriggerMesh Inc supports this project commercially, email info@triggermesh.com to get more details.

Code of Conduct

This plugin is by no means part of CNCF but we abide by its code of conduct