Sample Functions ​
Functions support multiple languages through the use of runtimes. To use a chosen runtime, add its name and version as a value in the spec.runtime field of the Function custom resource (CR). If this value is not specified, it defaults to nodejs20. Dependencies for a Node.js Function must be specified using the package.json file format. Dependencies for a Python Function must follow the format used by pip.
TIP
If you are interested in the Function's signature, event and context objects, and custom HTTP responses the Function returns, read about Function’s specification.
See sample Functions for all available runtimes: