<p>I'm trying to incorporate a helm chart into my kustomize setup. So I have added it to my <code>kustomization.yaml</code>:</p>
<pre><code>...
helmGlobals:
  chartHome: ../test/vault
helmCharts:
  - name: helm-vault
    valuesFile: ../test/vault-values.yaml
...
</code></pre>
<p>When I try to build this on command line I get this error:</p>
<pre><code>$ kustomize build --enable-helm infrastructure/vault/dev
Error: accumulating resources: accumulation err='accumulating resources from '../_base': '/home/tel/Private/Sources/domstolene@github.com/k8s-applications/infrastructure/vault/_base' must resolve to a file': recursed accumulation of path '/home/tel/Private/Sources/domstolene@github.com/k8s-applications/infrastructure/vault/_base': unable to run: 'helm version -c --short' with env=[HELM_CONFIG_HOME=/tmp/kustomize-helm-821391692/helm HELM_CACHE_HOME=/tmp/kustomize-helm-821391692/helm/.cache HELM_DATA_HOME=/tmp/kustomize-helm-821391692/helm/.data] (is 'helm' installed?)
</code></pre>
<p>The message suggests that <code>helm</code> might not be installed; however when I run it it is readily found:</p>
<pre><code>$ helm version -c --short
v3.10.1+g9f88ccb
</code></pre>
<p>Also; my kustomize version:</p>
<pre><code>$ kustomize version
v5.0.1
</code></pre>
<p>What might be the reason?</p>
<p><strong>Update</strong></p>
<p>I tried to follow this very nice guide: <a href="https://github.com/kubernetes-sigs/kustomize/blob/kustomize/v4.1.0/examples/chart.md" rel="nofollow noreferrer">https://github.com/kubernetes-sigs/kustomize/blob/kustomize/v4.1.0/examples/chart.md</a></p>
<p>I still get same error message even though I used the <code>--helm-command</code> argument to give kustomize the absolute path to the helm binary <code>/snap/bin/helm</code>.</p>

thoredge
<p>It may seem like <code>kustomize</code> have a problem with <code>snap</code> in some way. I downloaded a binary version from the <a href="https://github.com/helm/helm/releases" rel="nofollow noreferrer">helm release page</a> and specifying that binary with <code>--helm-command</code> seems to remove the problem entirely.</p>
<p><strong>Update</strong></p>
<p>It wasn't this entirely neither. So far it seems like the helm-binary have to reside under my home-directory. See <a href="https://github.com/kubernetes-sigs/kustomize/issues/5094#issuecomment-1473459361" rel="nofollow noreferrer">https://github.com/kubernetes-sigs/kustomize/issues/5094#issuecomment-1473459361</a></p>
<p><strong>Updatier</strong></p>
<p>It seem to be snap after all; although not the helm installation. The kustomize binary was also installed by snap. I removed it and installed a binary version instead and then everything worked like a charm.</p>
<p>It could be related to kustomize installed as regular snap-application and helm installed as &quot;classic&quot; snap-application.</p>
