<p>I'm trying to create my own helm chart package for prometheus and its components but I am trying to reuse parts of the kube-prometheus-stack helm chart on github : <a href="https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack" rel="nofollow noreferrer">https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack</a></p>
<p>I've modified the templates to my liking but when I try to create a package for them which I can then upload it to my repo I get the following :</p>
<pre><code>helm package prometheus-chart/                                                                                                                 
Error: found in Chart.yaml, but missing in charts/ directory: alertmanager, kube-state-metrics, prometheus-node-exporter, prometheus-pushgateway
</code></pre>
<p>How can I get the templates from that repo, and create a deployable package from my local machine which I can then share it?</p>

egib
<p>These components <strong>alertmanager, kube-state-metrics, prometheus-node-exporter, prometheus-pushgateway</strong> are added as dependencies in the <a href="https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/Chart.yaml" rel="nofollow noreferrer">Chart.yaml</a>. So the helm will check whether these dependencies are built or not.</p>
<p>So you need to build the dependencies as well by using this command</p>
<pre><code>$ helm dependency build CHARTNAME
</code></pre>
<p>Example:</p>
<pre><code>$ helm dependency build alertmanager
</code></pre>
<p>Once the dependencies are built you can update them using update command</p>
<pre><code>$ helm dependency update CHARTNAME
</code></pre>
<p>For more detailed information refer to this official documents <a href="https://helm.sh/docs/helm/helm_dependency_build/" rel="nofollow noreferrer">doc1</a> <a href="https://helm.sh/docs/helm/helm_dependency_update/" rel="nofollow noreferrer">doc2</a></p>
