Router integration with poolmgr and controller

Router uses poolmgr to specialize pods when necessary.

Router uses controller to get the list of triggers to listen for.  For
now this integration is pretty crappy -- we just poll the controller
every few seconds and cache the result.  The right way would be to
have some sort of watch API on the controller and use that.  Or maybe
share access to etcd directly.
This commit is contained in:
Soam Vasani
2016-11-01 18:22:04 -07:00
parent 2b15b726d4
commit 3d5e52dc3d
5 changed files with 79 additions and 28 deletions
+1 -1
View File
@@ -49,6 +49,6 @@ func (mr *mutableRouter) ServeHTTP(responseWriter http.ResponseWriter, request *
}
func (mr *mutableRouter) updateRouter(newHandler *mux.Router) {
log.Print("Updating router")
log.Println("Updating router")
mr.router.Store(newHandler)
}