triggermesh / tm

TriggerMesh CLI to work with knative objects
https://triggermesh.com
Apache License 2.0
84 stars 15 forks source link

Deploy a single function in the serverless.yaml spec? #192

Closed eddiewang closed 4 years ago

eddiewang commented 4 years ago

Hi there,

triggermesh is pretty magical now that I've got it working! kudos to the team. wanted to ask if there was a way to deploy only a single function in a serverless.yaml config. i've grouped a set of serverless handlers into a single repo.

whenever i run tm deploy -f bag-of-functions, every single function is built and deployed via kaniko. many times, the code i've edited only touches a specific handler, and i would love to be able to specify which handler to manually trigger. would you know if that's a supported use case?

tzununbekov commented 4 years ago

hey @eddiewang, thanks for a feedback, we're glad that you like triggermesh

Try a following command, it should do what you need:

tm deploy -f bag-of-functions <function>

where <function> is a name of function from your serverless.yaml

eddiewang commented 4 years ago

worked perfectly :+1:
thank you. now to figure out how to do telemetry and monitoring on Knative + Istio :smile: fun times ahead...