Replies: 1 comment
-
@Pauatro |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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