Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Behavior: Web UI vs. API #18903

Open
3 tasks done
lazysteel93 opened this issue Jul 2, 2024 · 1 comment
Open
3 tasks done

Sync Behavior: Web UI vs. API #18903

lazysteel93 opened this issue Jul 2, 2024 · 1 comment
Labels
bug/in-triage This issue needs further triage to be correctly classified bug Something isn't working component:api API bugs and enhancements type:bug

Comments

@lazysteel93
Copy link

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of 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

  1. Add an app to Argo with some resources.
  2. Add a Job type resource to the app.
  3. Sync from web UI, and confirm job ran.
  4. Now, delete the app and resources from k8s for this app, and repeat steps Add application CRD definition. Implement CRD install CLI command #1 and Implement Application controller boilerplate #2.
  5. Sync the app using the API, ApplicationSyncRequest with v1alpha1.SyncStrategyApply strategy.
  6. Confirm that job did not run.

Expected behavior

I would expect the API sync request to also run the job.

Screenshots

Version

argocd: v2.11.3+3f344d5
  BuildDate: 2024-06-06T12:31:55Z
  GitCommit: 3f344d54a4e0bbbb4313e1c19cfe1e544b162598
  GitTreeState: clean
  GoVersion: go1.22.4
  Compiler: gc
  Platform: darwin/arm64
argocd-server: v2.10.11+27e49f8

Logs

Paste any relevant application logs here.
@lazysteel93 lazysteel93 added the bug Something isn't working label Jul 2, 2024
@crenshaw-dev
Copy link
Member

Can you include the full application sync API request body?

@alexmt alexmt added bug/in-triage This issue needs further triage to be correctly classified component:api API bugs and enhancements type:bug labels Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/in-triage This issue needs further triage to be correctly classified bug Something isn't working component:api API bugs and enhancements type:bug
Projects
None yet
Development

No branches or pull requests

3 participants