Skip to content

[FEATURE REQUEST] hot reload functions #1636

@mstrYoda

Description

@mstrYoda

My actions before raising this issue

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions