<p>I have many helm repositories in my kubernetes,
And I installed a lot of charts,
So How do I know which repository the installed Chart belongs to?
For example:</p>
<pre><code>$&gt; helm repo list
  NAME            URL
  lucy-dev        https://harbor.mydomain.net/chartrepo/lucy-dev
  lucy-prod       https://harbor.mydomain.net/chartrepo/lucy-prod

$&gt; helm ls -n msgbox-lucy -o yaml
- app_version: &quot;1.0&quot;
  chart: msgbox-lucy-8.27.3
  name: msgbox-lucy
  namespace: msgbox-lucy
  revision: &quot;48&quot;
  status: deployed
  updated: 2022-04-19 08:11:16.761059067 +0000 UTC

</code></pre>
<p>I can't use <code>helm show</code> because:</p>
<pre><code>$&gt; helm show all msgbox-lucy -n msgbox-lucy --debug
show.go:195: [debug] Original chart version: &quot;&quot;
Error: non-absolute URLs should be in form of repo_name/path_to_chart, got: msgbox-lucy
...
</code></pre>

Bryan Chen
<p>I don't believe you're guaranteed to get the info you're looking for, however we can try.</p>
<p>Find the latest Helm secret for your Helm release.</p>
<pre><code>kubectl get secret -n msgbox-lucy
</code></pre>
<p>Yours might look something like this:</p>
<pre><code>sh.helm.release.v1.msgbox-lucy.v5
</code></pre>
<p>and run this command to view the chart's metadata:</p>
<pre><code>SECRET_NAME=&quot;sh.helm.release.v1.msgbox-lucy.v5&quot;

kubectl get secret $SECRET_NAME -o json | jq .data.release \
  | tr -d '&quot;' | base64 -d | base64 -d | gzip -d \
  | jq '.chart.metadata'
</code></pre>
<p>The metadata should hopefully show you 2 things you're looking for. The chart name will be under the <code>name</code> field. The chart repository URL might be under <code>sources</code>.</p>
<p>I say &quot;might&quot; because the chart developer should have added it there, but they might not have.</p>
<p>Then you can match the URL to your repo alias.</p>
<hr />
<p>If it's not included in the metadata, you're probably out of luck for now.</p>
<p>There is an open Github issue about exactly this feature you're wanting:</p>
<p><a href="https://github.com/helm/helm/issues/4256" rel="nofollow noreferrer">https://github.com/helm/helm/issues/4256</a></p>
<p>And an open PR that adds that feature:</p>
<p><a href="https://github.com/helm/helm/pull/10369" rel="nofollow noreferrer">https://github.com/helm/helm/pull/10369</a></p>
<p>And an open PR to add a HIP (Helm Improvement Proposal) for adding that feature:</p>
<p><a href="https://github.com/helm/community/pull/224" rel="nofollow noreferrer">https://github.com/helm/community/pull/224</a></p>
