Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dag-andersen/argocd-diff-preview
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cd8e42269b8fd51690e64125b58da53303a047c1
Choose a base ref
..
head repository: dag-andersen/argocd-diff-preview
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 15a1941b57a98b93e25cc01268347a48ef64b614
Choose a head ref
Showing with 11 additions and 2 deletions.
  1. +6 −2 src/extract.rs
  2. +5 −0 src/main.rs
8 changes: 6 additions & 2 deletions src/extract.rs
Original file line number Diff line number Diff line change
@@ -297,7 +297,6 @@ pub async fn delete_applications() -> Result<(), Box<dyn Error>> {
let _result =
run_simple_command("kubectl delete applications.argoproj.io --all -A --timeout 10s")
.inspect_err(|e| {
info!("🤖 Failed to delete applications. Retrying...");
debug!("Error: {}", e.stderr);
});

@@ -306,9 +305,14 @@ pub async fn delete_applications() -> Result<(), Box<dyn Error>> {
}

if counter == retry_count {
error!("❌ Failed to delete applications after {} retries", retry_count);
error!(
"❌ Failed to delete applications after {} retries",
retry_count
);
return Err("Failed to delete applications".into());
}

info!("⚠️ Failed to delete applications. Retrying...");
counter += 1;
}

5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -142,6 +142,11 @@ async fn main() -> Result<(), Box<dyn Error>> {
if !opt.keep_cluster_alive {
cleanup_cluster(opt.local_cluster_tool, &opt.cluster_name);
}
if !opt.debug {
error!("👀 Run with '--debug' for more details");
} else {
info!("If you think this error is caused by a bug, please open an issue on GitHub");
}
})
}