What are hook delete policies?
BeginnerConceptSync Waves, Hooks, Health & Diffing
Answer
Set with argocd.argoproj.io/hook-delete-policy:
BeforeHookCreation(default): delete the previous hook object just before creating the new one, so the last run stays inspectable.HookSucceeded: delete after success.HookFailed: delete after failure.
Combine them, for example BeforeHookCreation,HookSucceeded. Without BeforeHookCreation, a Job hook with a fixed name fails the next sync because a Job's template is immutable.
More on Sync Waves, Hooks, Health & Diffing
What are sync waves and how is ordering decided?BeginnerWhat are the sync phases and hook types?BeginnerHow would you run a database migration with Argo CD?IntermediateHow are Helm hooks treated by Argo CD?IntermediateIs there a delay between waves?AdvancedWhat health statuses can a resource have?Beginner