Hook Weights and Ordering
Sequencing multiple hooks deterministically.
Order Matters
When several hooks share one event, the sequence can matter. Maybe a secret must exist before the migration runs. Helm orders hooks with a weight.
The Weight Annotation
You set ordering with the helm.sh/hook-weight annotation. Its value is a string holding a number that Helm uses to sort hooks of the same event.
"helm.sh/hook-weight": "5"All lessons in this course
- What Hooks Are and When They Fire
- A Database Migration pre-upgrade Job
- Hook Weights and Ordering
- Hook Deletion Policies