<p>Im using the following code to install chart that is bounded in my source code (eg. in my <code>app/chart/chart1 </code> in my go bin app), Now I need to move the chart to <strong>git repository</strong> or to <strong>artifactory</strong>,</p>
<p>My question is how can I install the chart from outside my program?</p>
<p>This is the code I use which works for bundled chart</p>
<p>I use the <code>helm3</code> loader package which works when I have the chart bundled in my app</p>
<pre><code>chart, err := loader.Load(“chart/chart1”)
</code></pre>
<p><a href="https://pkg.go.dev/helm.sh/helm/v3@v3.5.4/pkg/chart/loader" rel="nofollow noreferrer">https://pkg.go.dev/helm.sh/helm/v3@v3.5.4/pkg/chart/loader</a></p>
<p>Should I load it somehow with an http call or helm have some built in functionality  ? we need some <strong>efficient  way</strong> to handle it</p>

<p>It seems that helm during its upgrade/install commands checks first a couple of different locations which you can see <a href="https://github.com/helm/helm/blob/v3.5.4/cmd/helm/install.go#L185" rel="nofollow noreferrer">getting called here</a>. The content of that function is <a href="https://github.com/helm/helm/blob/1b5edb69df3d3a08df77c9902dc17af864ff05d1/pkg/action/install.go#L627" rel="nofollow noreferrer">here</a>.
And then continues <a href="https://github.com/helm/helm/blob/v3.5.4/cmd/helm/install.go#L199" rel="nofollow noreferrer">here</a> with <code>loader.Load</code></p>
