function

module
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2021 License: Apache-2.0

README

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

Directories

Path Synopsis
cmd
pkg
apis/function/v1alpha1
+k8s:deepcopy-gen=package +groupName=extensions.triggermesh.io
+k8s:deepcopy-gen=package +groupName=extensions.triggermesh.io
client/generated/clientset/internalclientset
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/generated/clientset/internalclientset/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/generated/clientset/internalclientset/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/generated/clientset/internalclientset/typed/function/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/generated/clientset/internalclientset/typed/function/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL