add listener routes for internal service proxying (#793)

This commit is contained in:
Adil Hafeez 2026-03-01 23:51:14 -08:00
parent 198c912202
commit c2480639b2
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
13 changed files with 219 additions and 2 deletions

View file

@ -194,6 +194,7 @@ mod tests {
Listener {
name: name.to_string(),
agents: Some(agents),
routes: None,
port: 8080,
router: None,
}

View file

@ -74,6 +74,7 @@ mod tests {
let listener = Listener {
name: "test-listener".to_string(),
agents: Some(vec![agent_pipeline.clone()]),
routes: None,
port: 8080,
router: None,
};

View file

@ -36,11 +36,18 @@ pub struct AgentFilterChain {
pub filter_chain: Option<Vec<String>>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ListenerRoute {
pub path_prefix: String,
pub upstream: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Listener {
pub name: String,
pub router: Option<String>,
pub agents: Option<Vec<AgentFilterChain>>,
pub routes: Option<Vec<ListenerRoute>>,
pub port: u16,
}