Closed phgache closed 4 years ago
We are getting really close with multiple namespace support in the operator, i would rather fix this bug in the operator instead of hacking the gateway here. I will definitely take a look this weekend
@phgache I have created a potential fix in faas-netes, if you checkout https://github.com/openfaas/faas-netes/pull/683 you can see the testing instructions and if you are feeling adventurous, give it a try and help us verify the fix
Fixed in: https://github.com/openfaas/faas-netes/releases/tag/0.12.3
@phgache please could you try it out?
Hi,
I have deployed the new version and the bug is fixed.
Thanks @LucasRoesler & @alexellis
My actions before raising this issue
Expected Behaviour
The "invoke" button should call the function and the UI shoud show the function return.
Current Behaviour
As you can the see the call is failing because when the operator try to lookup for the function service, the name used is concatenated with the namespace. This is working with direct_function set to true because in this case the operator is not involved.
Given that, imho there is two options :
I have seen new feature about using multiple namespaces so the option 2 is maybe the best one as it will probably have less impacts.
Possible Solution
I’m not 100% sure that this is the best option, but as OpenFaaS does not support multiple namespace when direct_function is set to false, removing it in the « trimURLTransformer » could be an option :
main.go
forwarding_proxy.go
Steps to Reproduce (for bugs)
Context
This issue seems to only occurs in the UI which is has a minimal impact on our project. I raise this issue also to be sure that there is no further impact that I was not able to see.
Your Environment
FaaS-CLI version ( Full output from:
faas-cli version
): 0.12.4Docker version
docker version
(e.g. Docker 17.0.05 ): 19.03.13-beta2Are you using Docker Swarm or Kubernetes (FaaS-netes)? Kubernetes
Operating System and version (e.g. Linux, Windows, MacOS): MacOs 10.15.4
Code example or link to GitHub repo or gist to reproduce problem:
Other diagnostic information / logs from troubleshooting guide
If using Swarm, run the following and include the output:
Next steps
You may join Slack for community support.