<p>The goal: 
Using <strong>Helm Chart</strong> <strong>pre-install</strong> <strong>hook</strong>, take a file on the filesystem, encode it and place it as a resource file (referenced by a configMap.</p>

<p>Questions:</p>

<ul>
<li>Can a Helm Chart pre-install hook access files that are not under the root chart?</li>
<li>Can a Helm Chart pre-install hook modify or add a file under the Chart root?</li>
<li>Other then implicitly writing the bash script inside the chart resource yaml, can the pre-install hook execute a bash script if it is placed in the chart?</li>
</ul>

user1015767
<p>No, Hooks run as Jobs inside the Kubernetes cluster, so they have no access to your workstation. What you want is the Events system (<a href="https://github.com/helm/community/blob/master/helm-v3/002-events.md" rel="nofollow noreferrer">https://github.com/helm/community/blob/master/helm-v3/002-events.md</a>) which is still a WIP I think.</p>
