Search code examples
kuberneteskubernetes-helm

helm search and fetch not showing updated chart after upload to chartmuseum


I am using Helm to manage services in a Kubernetes cluster and use a chartmuseum to manage charts of my services.

After I've added the repo with the command helm repo add URL, helm can interact with my repo, e.g. install available charts with helm install NAME, or view all charts with helm search.

Now I face the following problem:

After creating or updating a new chart, I upload it with the command:
curl --data-binary "@FILENAME.tgz" http://REPOURL:REPOPORT/api/charts.

When I perform helm search, I expect to see the new chart or the updated version of the chart. This is not the case. Further, when I perform helm fetch NAME, I receive the old version of the updated chart.

In order to see the new or updated chart and use it, I have to re-add the repo (with the same name, otherwise it gets confusing).

Is there a way to refresh the list of available charts, without re-adding the repo?


Solution

  • The state of a repository is cached on your disk. When you update the remote repository you need to run helm repo update to retrieve the update before you can access it.