-
-
Couldn't load subscription status.
- Fork 2k
Closed
Description
My actions before raising this issue
- Followed the troubleshooting guide
- Read/searched the docs
- Searched past issues
Expected Behaviour
What about supporting hot-reload functionality for local test purposes? So this allows faster execution cycle for test purposes.
I would like to test my function without rebuilding&pushing an image on every change something like below:
faas-cli up-test my-function -f function.yaml
I am imagining a behavior like skaffold does.
Current Behaviour
Currently we need to run faas-cli up and it builds & pushes docker image to registry.
Possible Solution
When we run faas-cli up-test -f function.yml it can do the following steps:
- spawn a pod with a test image like golang:alpine-x
- watch the current directory
- push changes to test image
- run new codes
I am not aware of internals of openfaas so the solution I describe above may sound meaningless. But I believe that functionality can supported.
Context
Testing etc.
Metadata
Metadata
Assignees
Labels
No labels