Skip to content

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

Open
@LucasRoesler

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

  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

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