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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user