Skip to content

Commit

Permalink
[k8s] update timeout for pod creation to the same value of v1 (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola authored Jan 6, 2025
1 parent 536d0ea commit 78a0780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/provider/src/kubernetes/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ impl KubernetesClient {

trace!("Pod {name} checking for ready state!");
let wait_ready = await_condition(pods, name, helpers::is_pod_ready());
// TODO: we may want to allow to set this timeout for pod spawning.
let _ = tokio::time::timeout(Duration::from_secs(30), wait_ready)
// TODO: we may want to allow to set this timeout for pod spawning (and maybe a vm).
let _ = tokio::time::timeout(Duration::from_secs(300), wait_ready)
.await
.map_err(|err| {
Error::from(anyhow!("error while awaiting pod {name} running: {err}"))
Expand Down

0 comments on commit 78a0780

Please sign in to comment.