Configure ArgoCD to ignore kiwix zim-hash annotation

The zim-watcher CronJob updates the kiwix.blumeops/zim-hash annotation
on the deployment to trigger restarts when ZIM files change. This causes
ArgoCD to show the app as OutOfSync since the live value differs from git.

Add ignoreDifferences to the kiwix Application to exclude this annotation
from sync status calculations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-01-21 20:17:00 -08:00
commit 2402ee67e6

View file

@ -16,3 +16,9 @@ spec:
syncPolicy:
syncOptions:
- CreateNamespace=true
# Ignore zim-hash annotation - updated dynamically by zim-watcher CronJob
ignoreDifferences:
- group: apps
kind: Deployment
jsonPointers:
- /metadata/annotations/kiwix.blumeops~1zim-hash