Add feature for invoking namespaced functions

When coupled with the latest version of faas-netes, the gateway
can now invoke, query and deploy functions into alternative
namespaces.

Tested e2e by creating a namespace "fn" and deploying, then
invoking a function deployed there and in the default namespace.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd)
2019-09-20 13:21:29 +01:00
committed by Alex Ellis
parent 0a90125aba
commit 238ce1be23
9 changed files with 198 additions and 47 deletions

View File

@ -135,6 +135,11 @@ func Test_getServiceName(t *testing.T) {
url: "/function/testFunc",
serviceName: "testFunc",
},
{
name: "includes namespace",
url: "/function/test1.fn",
serviceName: "test1.fn",
},
{
name: "can handle request with trailing slash",
url: "/function/testFunc/",