Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuajerin committed Nov 25, 2024
1 parent b9bbc7d commit 83bd9d3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tembo-operator/src/cloudnativepg/hibernate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,10 @@ pub async fn reconcile_cluster_hibernation(cdb: &CoreDB, ctx: &Arc<Context>) ->

// Remove IngressRouteTCP route for stopped instances
let ingress_route_tcp_name = format!("{}-ro-0", cdb.name_any().as_str());
if let Err(err) = delete_ingress_route_tcp(
Api::namespaced(client, &namespace),
&namespace,
&ingress_route_tcp_name,
)
.await
let ingress_route_tcp_api = Api::namespaced(ctx.client.clone(), &namespace);

if let Err(err) =
delete_ingress_route_tcp(ingress_route_tcp_api, &namespace, &ingress_route_tcp_name).await
{
warn!(
"Error deleting ingress route for {}: {}",
Expand Down

0 comments on commit 83bd9d3

Please sign in to comment.