Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Leong <[email protected]>
  • Loading branch information
adleong committed Jul 17, 2023
1 parent dbc611c commit 7468795
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions policy-controller/k8s/index/src/outbound/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,18 +241,18 @@ impl Namespace {

let port = parent_ref.port.and_then(NonZeroU16::new);
if let Some(port) = port {
let service_port = ServicePort {
port,
service: parent_ref.name.clone(),
};
tracing::debug!(
?service_port,
route = route.name(),
"inserting route for service"
);
let service_routes =
self.service_routes_or_default(service_port, cluster_info, service_info);
service_routes.apply(route.gkn(), outbound_route.clone());
let service_port = ServicePort {
port,
service: parent_ref.name.clone(),
};
tracing::debug!(
?service_port,
route = route.name(),
"inserting route for service"
);
let service_routes =
self.service_routes_or_default(service_port, cluster_info, service_info);
service_routes.apply(route.gkn(), outbound_route.clone());
} else {
// If the parent_ref doesn't include a port, apply this route
// to all ServiceRoutes which match the Service name.
Expand Down

0 comments on commit 7468795

Please sign in to comment.