-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about API / envProcess #1219
Comments
envProcess/fprocess is optional, so it will only come back if it went in via the create. There is no way to bubble up any value that has been set in the Dockerfile. I'm not sure what the issue is? Can you try creating a deployment using the API and then show whether the value you inputted is coming back or not? |
Derek set title: Question about API / envProcess |
Derek add label: question |
Do you see it set on http://localhost:8080/system/functions ? |
I just ran POST http://localhost:8080/system/functions with body
And the ran GET http://localhost:8080/system/function/figlet-test with response
|
Agree, I would love to help pick up #848 but wasn't sure if this was a bug that should addressed first. |
@ameier38 looks like in faas-netes it's set as an environment variable during deployment here: https://github.com/openfaas/faas-netes/blob/master/handlers/deploy.go#L283 But its not read back here: https://github.com/openfaas/faas-netes/blob/master/handlers/reader.go#L93 |
Ahh I see now. Thanks. Sorry just started looking at the code and trying to wrap my head around how it all connects. I think #848 would address the issue as you said. Ill close this and pick up the conversation there. |
@ameier38 please can you try reading back the env-var from the container spec? I am not sure if it will be available, but you could try? If you are not sure where to start please ask in #contributors. Alex |
My actions before raising this issue
Expected Behaviour
I would expect the
envProcess
value to be populated in the response from/system/function/<function name>
Current Behaviour
envProcess
is a blank string in the/system/function/<function name>
response despite thefprocess
having a value.Possible Solution
Not sure yet
Steps to Reproduce (for bugs)
http://localhost:8080/system/function/figlet
Response is:
Looking at the function store I see that
fprocess
is populated.Context
I am trying to use https://github.com/ewilde/terraform-provider-openfaas but having trouble running acceptance tests for some recent changes. Digging in, I could not figure out why the
envProcess
was always blank despite it being set in the request. Maybe this is a desired behavior 🤔 ? Searching for issues I also came across #848 which also be very helpful.Your Environment
faas-cli version
):CLI:
commit: 96f159fc3e85a6782461c9dde77cbf88308aa21d
version: 0.8.6
Gateway
uri: http://localhost:8080
version: 0.13.0
sha: fa93655
commit: Update test for metrics server
Provider
name: faas-netes
orchestration: kubernetes
version: 0.7.5
sha: 4d3671b
docker version
(e.g. Docker 17.0.05 ):Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:31 2019
OS/Arch: windows/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:06 2019
OS/Arch: linux/amd64
Experimental: false
Kubernetes
Windows 10 64bit
The text was updated successfully, but these errors were encountered: