Skip to content

Commit

Permalink
Ignore deployment delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Sep 5, 2024
1 parent 41f72d7 commit f673077
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions crates/agones/src/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ mod tests {
let dp = DeleteParams::default();

let config_map = create_token_router_config(&config_maps).await;
let (relay_name, agent_name) =
let (relay_name, _agent_name) =
agones_agent_deployment(&client, deployments.clone(), relay, agent, id).await;

let relay_proxy_name = format!("quilkin-relay-proxy-{id}");
Expand Down Expand Up @@ -202,49 +202,49 @@ mod tests {
}
}

match deployments
.delete_collection(&dp, &kube::api::ListParams::default())
.await
.expect("failed to delete deployments")
{
Either::Left(_) => {
let (pd, ad, rd) = tokio::try_join!(
timeout(
Duration::from_secs(30),
await_condition(
deployments.clone(),
&relay_proxy_name,
kube::runtime::conditions::is_deleted(&relay_proxy_name),
)
),
timeout(
Duration::from_secs(30),
await_condition(
deployments.clone(),
&agent_name,
kube::runtime::conditions::is_deleted(&agent_name),
)
),
timeout(
Duration::from_secs(30),
await_condition(
deployments.clone(),
&relay_name,
kube::runtime::conditions::is_deleted(&relay_name),
)
),
)
.expect("failed to delete config_map within timeout");

pd.expect("failed to delete proxy");
ad.expect("failed to delete agent");
rd.expect("failed to delete relay");
println!("...deployments deleted");
}
Either::Right(_) => {
println!("deployments deleted");
}
}
// match deployments
// .delete_collection(&dp, &kube::api::ListParams::default())
// .await
// .expect("failed to delete deployments")
// {
// Either::Left(_) => {
// let (pd, ad, rd) = tokio::try_join!(
// timeout(
// SLOW,
// await_condition(
// deployments.clone(),
// &relay_proxy_name,
// kube::runtime::conditions::is_deleted(&relay_proxy_name),
// )
// ),
// timeout(
// SLOW,
// await_condition(
// deployments.clone(),
// &agent_name,
// kube::runtime::conditions::is_deleted(&agent_name),
// )
// ),
// timeout(
// SLOW,
// await_condition(
// deployments.clone(),
// &relay_name,
// kube::runtime::conditions::is_deleted(&relay_name),
// )
// ),
// )
// .expect("failed to delete config_map within timeout");

// pd.expect("failed to delete proxy");
// ad.expect("failed to delete agent");
// rd.expect("failed to delete relay");
// println!("...deployments deleted");
// }
// Either::Right(_) => {
// println!("deployments deleted");
// }
// }
}

/// Deploys the Agent and Relay Server Deployments and Services
Expand Down

0 comments on commit f673077

Please sign in to comment.