argocd-image-updater
argocd-image-updater copied to clipboard
image updater post-sync hook
Is your feature request related to a problem? Please describe. I need to run an ArgoCD post-sync hook, but only when the sync is the result of image updater "deploying" a new image:tag and not when ArgoCD is just syncing to bring the App back into compliance with values.yaml file. This would effectively make it a post-deploy hook similar to the Helm post-install hook
Describe the solution you'd like A way to trigger a post-sync hook from image updater that would match a Helm post-install hook semantic.
Describe alternatives you've considered Couldn't think of any
Additional context None
Creating Kubernetes resources (i.e. a Job or Pod) is way out of scope for Image Updater, imho, especially since you can basically run it without having access to Kubernetes at all.
The only way I could see this being implemented as running a script inside Image Updater's container after it has updated a given Application with a new container image, for example to call a webhook or similar technique.