Helm
Hard
Templates
Which annotation is commonly used to mark a resource as a Helm hook?
Select your answer:
Show answer and explanation
Answer: helm.sh/hook
Explanation
A hook is an ordinary manifest with the helm.sh/hook annotation naming one or more events, such as pre-install or post-upgrade. helm.sh/hook-weight orders hooks of the same event, and helm.sh/hook-delete-policy decides when Helm deletes them. Hook resources aren't managed as part of the release.
More hard Helm questions
- Which manifest hook weight determines order when multiple hooks of the same type run?
- Which command can render templates but also show Kubernetes object diffs against the cluster when combined with other tools?
- What does the 'lookup' function in templates do?
- Which function trims trailing newlines from a string in templates?
- How can you override a nested map value via the command line?
- Which setting would you use to make a template helper available to child charts (subcharts)?