From 1d4875ff74ccafe18cc922a5ad659549e2242e20 Mon Sep 17 00:00:00 2001 From: Soam Vasani Date: Thu, 19 Jan 2017 09:27:05 -0800 Subject: [PATCH] Bugfix for internal routes Poolmgr removed the default-latest-version semantics to simplify caching. But this broke the router's internal function routes, which are used by kubeWatcher. The router now exposes a versionless url and regularly updates that to point to the latest version. --- router/httpTriggers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/httpTriggers.go b/router/httpTriggers.go index 22a89334..dbbae074 100644 --- a/router/httpTriggers.go +++ b/router/httpTriggers.go @@ -81,7 +81,7 @@ func (ts *HTTPTriggerSet) getRouter() *mux.Router { m := fission.Metadata{Name: function.Metadata.Name} fh := &functionHandler{ fmap: ts.functionServiceMap, - Function: m, + Function: function.Metadata, poolmgr: ts.poolmgr, } muxRouter.HandleFunc(fission.UrlForFunction(&m), fh.handler)