bug: function info endpoint does not return the env variables #922
Description
Expected Behaviour
The faas-cli describe
should show the env variables on the function.
Current Behaviour
The env variables are always empty.
Are you a GitHub Sponsor (Yes/No?)
Check at: https://github.com/sponsors/openfaas
- Yes
- No
List All Possible Solutions and Workarounds
- Update the
k8s.AsFunctionStatus
so that it populates the env variables - Document it as a known bug and ignore it(?)
Which Solution Do You Recommend?
Update the k8s.AsFunctionStatus
so that it populates the env variables
Steps to Reproduce (for bugs)
- Follow the testing instructions from feat: Add missing fields to the describe output faas-cli#915
Context
While working on openfaas/faas-cli#913 I was adding the list of secrets to the describe
output and I noticed several fields were missing, including the env variables. These are on the FunctionStatus
type returned by the info
endpoint, but when I patched the CLI in openfaas/faas-cli#915, the env variables were always empty.
Your Environment
-
FaaS-CLI version ( Full output from:
faas-cli version
): Found while testing feat: Add missing fields to the describe output faas-cli#915 -
Docker version
docker version
(e.g. Docker 17.0.05 ): -
What version and distriubtion of Kubernetes are you using?
kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2", GitCommit:"092fbfbf53427de67cac1e9fa54aaa09a28371d7", GitTreeState:"clean", BuildDate:"2021-06-16T12:59:11Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-21T23:01:33Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}
- Operating System and version (e.g. Linux, Windows, MacOS): Linux Ubuntu 21.10