Skip to content

Commit

Permalink
fix: requeue k8s reconcile loop after attempting to delete network
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Dec 1, 2023
1 parent bf9d0d0 commit 77f15f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/src/network/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async fn reconcile(
info!("network TTL expired, deleting network");
delete_network(cx.clone(), &network.name_unchecked()).await?;
// Return early no need to update status
return Ok(Action::await_change());
return Ok(Action::requeue(Duration::from_secs(5 * 60)));
};
Some(Time(expiration_time))
}
Expand Down

0 comments on commit 77f15f2

Please sign in to comment.