Skip to content

Commit ee49ff2

Browse files
committed
fix: improve container deletion handling
1 parent 44b389d commit ee49ff2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

infrastructure/pulumi/__main__.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,8 @@ def test_docker_registry_access(username: str, password: str, image_tag: str, ma
163163
opts=pulumi.ResourceOptions(
164164
provider=provider,
165165
depends_on=[network, db_volume],
166-
parent=network,
167-
delete_before_replace=True, # Delete old container before creating new one
168-
replace_on_changes=["image"] # Replace container when image changes
166+
replace_on_changes=["image"], # Replace container when image changes
167+
retain_on_delete=False # Don't try to retain the container on delete
169168
)
170169
)
171170

@@ -206,9 +205,8 @@ def test_docker_registry_access(username: str, password: str, image_tag: str, ma
206205
opts=pulumi.ResourceOptions(
207206
provider=provider,
208207
depends_on=[network, prometheus_volume, api_container],
209-
parent=network,
210-
delete_before_replace=True, # Delete old container before creating new one
211-
replace_on_changes=["image"] # Replace container when image changes
208+
replace_on_changes=["image"], # Replace container when image changes
209+
retain_on_delete=False # Don't try to retain the container on delete
212210
)
213211
)
214212

0 commit comments

Comments
 (0)