From 4f2e49f2192b22b883c16766b81d0c766d084830 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Tue, 3 Feb 2026 07:18:49 -0800 Subject: [PATCH] Add TTL to zim-watcher CronJob for automatic cleanup Jobs created by the CronJob will now auto-delete 4 days after completion. This prevents zombie Jobs from accumulating when the CronJob spec changes (e.g., image updates), since ArgoCD only tracks the CronJob resource itself, not the Jobs it spawns. Co-Authored-By: Claude Opus 4.5 --- argocd/manifests/kiwix/cronjob-zim-watcher.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/argocd/manifests/kiwix/cronjob-zim-watcher.yaml b/argocd/manifests/kiwix/cronjob-zim-watcher.yaml index 3532676..5de0990 100644 --- a/argocd/manifests/kiwix/cronjob-zim-watcher.yaml +++ b/argocd/manifests/kiwix/cronjob-zim-watcher.yaml @@ -9,6 +9,7 @@ spec: concurrencyPolicy: Forbid jobTemplate: spec: + ttlSecondsAfterFinished: 345600 # Auto-delete after 4 days template: spec: serviceAccountName: zim-watcher