Add assert
This commit is contained in:
parent
4412618307
commit
fdfd70b763
1 changed files with 1 additions and 0 deletions
|
|
@ -262,6 +262,7 @@ async def delete_deployment_resources(build_name: str) -> None:
|
|||
@sync_to_async
|
||||
def kill_job(build_name: str, job_kind: DeploymentMode) -> None:
|
||||
# TODO delete all resources with runboat/build and runboat/job-kind label
|
||||
assert job_kind in (DeploymentMode.initialize, DeploymentMode.cleanup)
|
||||
batchv1 = client.BatchV1Api()
|
||||
batchv1.delete_collection_namespaced_job(
|
||||
namespace=settings.build_namespace,
|
||||
|
|
|
|||
Loading…
Reference in a new issue