argocd-image-updater icon indicating copy to clipboard operation
argocd-image-updater copied to clipboard

image updater post-sync hook

Open lhenry7 opened this issue 1 year ago • 1 comments

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

lhenry7 avatar Apr 01 '24 19:04 lhenry7

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.

jannfis avatar May 31 '24 14:05 jannfis