From a4ece9dad7bc643661ca0a466ab73da2181b77a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 13 Sep 2025 13:45:21 +0200 Subject: [PATCH] Delete all resources with the build label This allows the addition of other resource types in custom kubefiles. --- src/runboat/k8s.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runboat/k8s.py b/src/runboat/k8s.py index 9233343..8d83a90 100644 --- a/src/runboat/k8s.py +++ b/src/runboat/k8s.py @@ -242,13 +242,12 @@ async def deploy(kubefiles_path: Path | None, deployment_vars: DeploymentVars) - async def delete_resources(build_name: str) -> None: - # TODO delete all resources with runboat/build label await _kubectl( [ "-n", settings.build_namespace, "delete", - "configmap,deployment,ingress,job,secret,service,pvc", + "all", "-l", f"runboat/build={build_name}", "--wait=false",