<p>I have a k8s job setup as a helm hook for pre-install and pre-upgrade stages.</p>
<p>&quot;helm.sh/hook&quot;: pre-install,pre-upgrade</p>
<p>Is there a way to know inside the job/pod which stage it is getting executed - whether it is pre-install or pre-upgrade ?</p>

Dhanuj Dharmarajan
<p>You could create separate jobs/pods manifests assigning them different arguments/env variables to keep track of the hook events. I haven't seen anything in the tool itself.</p>
