huskies: merge 1138 story In-container huskies self-update — huskies upgrade pulls a fresh binary without docker rebuild
This commit is contained in:
@@ -62,6 +62,11 @@ pub fn build_gateway_route(state_arc: Arc<GatewayState>) -> impl poem::Endpoint
|
||||
"/gateway/agents/:id/assign",
|
||||
poem::post(gateway_assign_agent_handler),
|
||||
)
|
||||
// Binary self-update: serve the gateway binary so sleds can download it.
|
||||
.at(
|
||||
"/api/huskies-binary",
|
||||
poem::get(crate::http::serve_binary_handler),
|
||||
)
|
||||
.data(state_arc)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user