Delete all resources with the build label
This allows the addition of other resource types in custom kubefiles.
This commit is contained in:
parent
949f346ae2
commit
a4ece9dad7
1 changed files with 1 additions and 2 deletions
|
|
@ -242,13 +242,12 @@ async def deploy(kubefiles_path: Path | None, deployment_vars: DeploymentVars) -
|
||||||
|
|
||||||
|
|
||||||
async def delete_resources(build_name: str) -> None:
|
async def delete_resources(build_name: str) -> None:
|
||||||
# TODO delete all resources with runboat/build label
|
|
||||||
await _kubectl(
|
await _kubectl(
|
||||||
[
|
[
|
||||||
"-n",
|
"-n",
|
||||||
settings.build_namespace,
|
settings.build_namespace,
|
||||||
"delete",
|
"delete",
|
||||||
"configmap,deployment,ingress,job,secret,service,pvc",
|
"all",
|
||||||
"-l",
|
"-l",
|
||||||
f"runboat/build={build_name}",
|
f"runboat/build={build_name}",
|
||||||
"--wait=false",
|
"--wait=false",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue