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

PostSync hook not happening on auto sync multiple paths #20722

Open
3 tasks done
Techwolf12 opened this issue Nov 8, 2024 · 0 comments
Open
3 tasks done

PostSync hook not happening on auto sync multiple paths #20722

Techwolf12 opened this issue Nov 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Techwolf12
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

After an upgrade to ArgoCD 2.13.0, we noticed our PostSync hook no longer triggering on automatic syncs, if you do a manual sync it does still trigger.
Our setup is a mono repo with all config files and different paths for different applications, the PostSync job reports the state back.

To Reproduce

  • Create two applications with the same repository and different paths.
  • Create a PostSync job in the first path, do not create one in the second.
  • Update the second path, since the release SHA is different, both apps will sync. App 1 will have no changes though.
  • Sync app 1 manually, the PostSync job runs.

Expected behavior
In the past, because app 1 synced, the PostSync job was run.
We expect this behaviour to still happen.

Since this is maybe a bit of an edge case, maybe have an option to enable hooks when no actual changes occur in the application.

Screenshots

Version

argocd: v2.13.0+347f221
  BuildDate: 2024-11-04T12:09:06Z
  GitCommit: 347f221adba5599ef4d5f12ee572b2c17d01db4d
  GitTreeState: clean
  GoVersion: go1.23.1
  Compiler: gc
  Platform: linux/amd64

Logs

No relevant logs
@Techwolf12 Techwolf12 added the bug Something isn't working label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant