How are Helm hooks mapped in Argo CD?
AdvancedConceptSchema, Helmfile, Argo CD & Secrets
Answer
Argo CD maps Helm hook annotations to its own phases:
| Helm | Argo CD |
|---|---|
pre-install, pre-upgrade |
PreSync |
post-install, post-upgrade |
PostSync |
pre-delete |
PreDelete (recent Argo CD versions) |
post-delete |
PostDelete |
test |
not run |
pre-rollback, post-rollback |
ignored |
hook-weight maps to sync wave ordering within the phase and hook-delete-policy maps to Argo CD delete policies. Note that pre-install and pre-upgrade both become PreSync, so a hook meant only for install runs on every sync. If a chart defines Argo CD's own argocd.argoproj.io/hook annotation, that takes precedence.
More on Schema, Helmfile, Argo CD & Secrets
When is `values.schema.json` validated, and can it be skipped?IntermediateHow do you express "password is required only when the internal database is enabled" in a schema?AdvancedWhat is Helmfile?BeginnerShow a realistic `helmfile.yaml`.IntermediateWhat is the difference between `helmfile sync` and `helmfile apply`?IntermediateHow does Argo CD deploy a Helm chart?Advanced