An app contains a k8s Job, that has annotations for either PreSync or PostSync. When performing normal Sync from the web UI, the job is ran. But when syncing using the API, job is not ran.
To Reproduce
Add an app to Argo with some resources.
Add a Job type resource to the app.
Sync from web UI, and confirm job ran.
Now, delete the app and resources from k8s for this app, and repeat steps #1 and #2.
Sync the app using the API, ApplicationSyncRequest with v1alpha1.SyncStrategyApply strategy.
Confirm that job did not run.
Expected behavior
I would expect the API sync request to also run the job.
Checklist:
argocd version
.Describe the bug
An app contains a k8s Job, that has annotations for either PreSync or PostSync. When performing normal Sync from the web UI, the job is ran. But when syncing using the API, job is not ran.
To Reproduce
ApplicationSyncRequest
withv1alpha1.SyncStrategyApply
strategy.Expected behavior
I would expect the API sync request to also run the job.
Screenshots
Version
Logs