0PricingLogin
Helm Academy · Lesson

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

  1. What Hooks Are and When They Fire
  2. A Database Migration pre-upgrade Job
  3. Hook Weights and Ordering
  4. Hook Deletion Policies
← Back to Helm Academy