Replies: 2 comments
-
|
The Jobs don't run on reconcile if there is no change in the Job YAML, Flux skips applying objects without changes. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the clarification. In our use case, we need to set The problem is that with this setup, Job object itself is also deleted when the TTL expires. On the next Flux reconciliation, the Job is seen as missing and is recreated — causing it to run again even if there has been no source change. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Flux team 👋
What I want to achieve:
I'm using the pre-deploy job with Flux’s
Kustomization. At the moment, this job runs on every reconciliation, regardless of whether the reconcile was triggered by the.spec.interval(periodic sync) or by a source change (e.g., new Git commit, image update).Desired behavior:
Why this matters
Certain jobs—such as database migrations, schema updates, or data seeding—are meaningful only when the application’s source has changed. Running these jobs on every reconcile cycle, even without changes, can:
Is it possible to configure this behavior?
Thank you in advance for your guidance.
Beta Was this translation helpful? Give feedback.
All reactions