Helm hook life cycle
As you saw regarding the job hook in the previous section, the point at which the job was executed was based on the value of the helm.sh/hook
annotation. Since post-install
was specified, the job was executed once all the associated resources were created as part of the release. The post-install
option represents one of the points during the life span of a Helm chart where a hook can be executed.
The following table describes the available options for the helm.sh/hook
annotation. A description of each hook can be found in the official Helm documentation, which can be found at https://helm.sh/docs/topics/charts_hooks/#the-available-hooks:
Annotation Value |
Description |
|
Executes after templates are rendered but before any resources are created in Kubernetes. |
|
Executes... |