Skip to content
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

bug: function info endpoint does not return the env variables #922

Open
1 of 2 tasks
LucasRoesler opened this issue Feb 26, 2022 · 0 comments · May be fixed by #923
Open
1 of 2 tasks

bug: function info endpoint does not return the env variables #922

LucasRoesler opened this issue Feb 26, 2022 · 0 comments · May be fixed by #923

Comments

@LucasRoesler
Copy link
Member

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

  1. Update the k8s.AsFunctionStatus so that it populates the env variables
  2. 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)

  1. 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

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
@LucasRoesler LucasRoesler linked a pull request Feb 26, 2022 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant