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.
This commit is contained in:
Soam Vasani
2017-01-19 09:27:05 -08:00
parent e0c7682996
commit 1d4875ff74
+1 -1
View File
@@ -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)