Helm
Hard
Templates
Which field in a hook's annotations sets a timeout for hook execution?
Select your answer:
Show answer and explanation
Answer: None; the command's --timeout applies
Explanation
Hooks have no timeout annotation. Helm waits for each hook up to the --timeout of the install or upgrade, 5 minutes by default, and a Job hook counts as done when it completes. helm.sh/hook-weight sets the order, and helm.sh/hook-delete-policy sets when hook resources are removed.
More hard Helm questions
- How do Helm 3 and Helm 4 apply changes to the cluster during an install or upgrade?
- Where does Helm 3 store release information by default?
- A chart has a pre-upgrade Job hook with no helm.sh/hook-delete-policy annotation. What happens to the Job left from the previous upgrade when the hook runs again?
- What does the annotation helm.sh/resource-policy: keep do on a resource in a chart?
- Which values from the parent chart can a subchart named 'redis' read?
- values.yaml contains host: "{{ .Release.Name }}.example.com". What do you write in a template so the output contains the release name instead of the literal braces?