Detect when a function has been created in openfaas

7/25/2021

I am currently tinkering around with openfaas and I am writing a mechanism which automatically maps me labelled functions to a graphaql api. For now this mechanism is only triggered manually through a function inside openfaas. I am looking for way on how I could automate the trigger by listening to openfaas when a function has been created, changed or destroyed. For now I only see the way by creating an operator with a watch on deployments with specific labels, however this seems to me to be too much dependent on kubernetes. Is there somewhere where openfaas broadcasts function changes?

-- khusseini
kubernetes
openfaas

0 Answers