NodeJS functions
For information about configuration options across all function runtimes, please head to the main functions documentation page.
NodeJS empty field transformation example on Kubernetes
apiVersion: extensions.triggermesh.io/v1alpha1
kind: Function
metadata:
name: inline-node-function
spec:
runtime: node
ceOverrides:
extensions:
type: io.triggermesh.nodejs.sample
entrypoint: transformName
code: |
module.exports.transformName = async (event) => {
if (event.name == "") {
event.name = "placeholder";
}
return event;
};