You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"", fmt.Errorf("unable to determine release of kubeseal")
Context
This is something I spotted while working on #874 and is more of a consideration if #874 doesn't get merged. In any event id suggest findReleases() should be made more generic.
Your Environment
FaaS-CLI version ( Full output from: faas-cli version ):
Docker version ( Full output from: docker version ):
Are you using Docker Swarm (FaaS-swarm ) or Kubernetes (FaaS-netes)?
Operating System and version (e.g. Linux, Windows, MacOS):
Link to your project or a code example to reproduce issue:
The text was updated successfully, but these errors were encountered:
This is loosely related to #874 and is extant in the current CLI version.
Expected Behaviour
If a faas-cli version check fails the error message that bubbles up to the user should be specific to faas-cli
Current Behaviour
Due to https://github.com/openfaas/faas-cli/blob/master/commands/cloud.go#L194 if a faas-cli version check fails due to a zero length location header the error message returned to the user will refer to kubeseal.
Why do you need this?
Clarity for the user
Are you a GitHub Sponsor (Yes/No?)
Check at: https://github.com/sponsors/openfaas
List All Possible Solutions and Workarounds
Swap out the string literal that refers to the tool name and use the incoming url value instead
Which Solution Do You Recommend?
Swap out the string literal that refers to the tool name and use the incoming url value instead
Steps to Reproduce (for bugs)
Difficult as it requires the specific error condition to be forced. Its easier understood through code inspection.
This call:
faas-cli/commands/version.go
Line 69 in d08553e
Reaches:
faas-cli/commands/cloud.go
Line 194 in d08553e
which returns:
faas-cli/commands/cloud.go
Line 219 in d08553e
Context
This is something I spotted while working on #874 and is more of a consideration if #874 doesn't get merged. In any event id suggest
findReleases()
should be made more generic.Your Environment
FaaS-CLI version ( Full output from:
faas-cli version
):Docker version ( Full output from:
docker version
):Are you using Docker Swarm (FaaS-swarm ) or Kubernetes (FaaS-netes)?
Operating System and version (e.g. Linux, Windows, MacOS):
Link to your project or a code example to reproduce issue:
The text was updated successfully, but these errors were encountered: