Skip to content

Errors in func.yaml make a deployment fail at runtime, not at compile time #125

Open

Description

@lenalebt

I had a func.yaml with the follwoing content:

name: mail
version: 0.0.3
runtime: java
cmd: com.espirit.fsi.example.ApplicationViaMail.java::handleRequest
build_image: fnproject/fn-java-fdk-build:jdk9-1.0.56
run_image: fnproject/fn-java-fdk:jdk9-1.0.56
format: http

an fn deploy, as well as fn test did not fail, however the docker image was not able to run because of the copy-paste-error in cmd, which contained the .java file extension which was wrong.

My expectation is that an fn test or fn deploy fails when it cannot run properly. One possible solution is to run the docker image locally before deploying it, although it may be possible to check the func.yaml direclty for correctness.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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