outposts: delete old outpost deployment when name or namespace is changed

closes #845

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-05-08 16:11:38 +02:00
parent 1e303b515b
commit 6868b7722c
3 changed files with 38 additions and 8 deletions

View File

@ -111,7 +111,7 @@ def outpost_controller(self: MonitoredTask, outpost_pk: str):
@CELERY_APP.task()
def outpost_pre_delete(outpost_pk: str):
def outpost_controller_down(outpost_pk: str):
"""Delete outpost objects before deleting the DB Object"""
outpost = Outpost.objects.get(pk=outpost_pk)
controller = controller_for_outpost(outpost)