You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a Presync Job to run the migrations of the db before the frontend and backend are updated. The Job is deleted after being finished, which is what I want. ArgoCD detects the missing job and triggers a sync every 3 minutes, so the job runs again. When selfHealing is removed, this loop stops happening and the cluster stays Out of Sync.
I've tried using selective diffing but I can't make it ignore the whole missing Job manifest, and I'm not sure if that's even possible since the documentation only describes ignoring specific fields in manifests, not the entire file. The ignoreDifferences conditions are added properly to the App manifest though.
Is there a common way of doing this? Just knowing whether what I'm trying to do is possible would already go a long way. AFAIK running migrations on a Presync Job is a common practice, so I would expect ArgoCD to include a way to manage it and I'm probably doing something wrong there.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I use a Presync Job to run the migrations of the db before the frontend and backend are updated. The Job is deleted after being finished, which is what I want. ArgoCD detects the missing job and triggers a sync every 3 minutes, so the job runs again. When selfHealing is removed, this loop stops happening and the cluster stays Out of Sync.
I've tried using selective diffing but I can't make it ignore the whole missing Job manifest, and I'm not sure if that's even possible since the documentation only describes ignoring specific fields in manifests, not the entire file. The ignoreDifferences conditions are added properly to the App manifest though.
Is there a common way of doing this? Just knowing whether what I'm trying to do is possible would already go a long way. AFAIK running migrations on a Presync Job is a common practice, so I would expect ArgoCD to include a way to manage it and I'm probably doing something wrong there.
We also use Autopilot to set up ArgoCD.
Some of the important files included here:
Beta Was this translation helpful? Give feedback.
All reactions