Skip to content

Commit

Permalink
Remove test about deletionTimestamp <= now
Browse files Browse the repository at this point in the history
  • Loading branch information
dacofr committed Nov 29, 2024
1 parent dcb2b6f commit 88d6206
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fiaas_deploy_daemon/crd/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ def _skip_update_of_deleted_application(self, application: FiaasApplication):
# removed. If the application resource is in the process of being deleted, deploy should be skipped otherwise
# it may interfere with the deletion process done by the garbage collector.
deletion_timestamp = application.metadata.deletionTimestamp
if isinstance(deletion_timestamp, datetime.datetime) and deletion_timestamp <= datetime.datetime.now(
tz=datetime.timezone.utc
):
if isinstance(deletion_timestamp, datetime.datetime):
LOG.warning(
"Skipping update watch event for app %s; it was marked for deletion at %s",
application.spec.application,
Expand Down

0 comments on commit 88d6206

Please sign in to comment.