k8wiz
Argo CD
Medium
Application Management

An Argo CD Application renders a Helm chart whose migration Job has helm.sh/hook: pre-upgrade. Which Argo CD hook does Argo CD treat it as?

Select your answer:

Show answer and explanation

Answer: PreSync

Explanation

Argo CD maps both helm.sh/hook: pre-install and pre-upgrade to argocd.argoproj.io/hook: PreSync, and post-install and post-upgrade to PostSync. Because every Argo CD operation is a sync, it cannot tell an install from an upgrade, so a chart with both pre hooks runs them in the same sync.

Read more about Argo CD