k8wiz
Helm
Hard
Templates

Which manifest hook weight determines order when multiple hooks of the same type run?

Select your answer:

Show answer and explanation

Answer: helm.sh/hook-weight

Explanation

Hooks of the same event run in ascending order of helm.sh/hook-weight, so -5 runs before 0 and 5. The weight is written as a string in the annotation, and hooks with the same weight are sorted by kind and then by name.

Read more about Helm