Skip to content

Commit 267210c

Browse files
authored
Merge pull request #341 from azimuth-cloud/feature/cron-job-cascade-delete
Cron job needs to cascade delete by forcing foreground propagation of the delete call
2 parents 0885fbc + e565907 commit 267210c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

azimuth_caas_operator/utils/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ async def create_scheduled_delete_job(client, name, namespace, uid, lifetime_hou
170170
client = config.sync_client(
171171
default_field_manager="autodelete", default_namespace="{namespace}")
172172
cluster_resource = client.api("{registry.API_VERSION}").resource("cluster")
173-
cluster_resource.delete("{name}")
173+
cluster_resource.delete("{name}", propagation_policy="Foreground")
174174
"""
175175
job_yaml = f"""apiVersion: batch/v1
176176
kind: CronJob

execution-environment/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ara
22
bcrypt==4.3.0
3+
easykube==0.6.0
34
jsonschema
45
netaddr
56
openstacksdk

0 commit comments

Comments
 (0)