profile
viewpoint

Ask questions'helm repo update {REPO} ' feature

Some helm repo commands accept the repository name as parameter, that is not the case of helm repo update, this command doesn't receive any extra parameter, updating all the installed repos.

There are some cases where it would be useful to just update one specific repository, for example, if I am working with one specific repository, I don't need to update all of them, just the one I want to obtain the latest changes.

With the "new" approach of distributed repositories, it will be more habitual to have a larger list of repositories. Do you think something like this feature is useful? Is it a good option for a first-contribution PR?

$ helm repo list
NAME             	URL
bitnami          	https://charts.bitnami.com/bitnami
stable           	https://kubernetes-charts.storage.googleapis.com
azure-marketplace	https://marketplace.azurecr.io/helm/v1/repo

$ helm repo update bitnami
Hang tight while we grab the latest from your chart repository...
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈ Happy Helming!⎈

instead of

$ helm repo list
NAME             	URL
bitnami          	https://charts.bitnami.com/bitnami
stable           	https://kubernetes-charts.storage.googleapis.com
azure-marketplace	https://marketplace.azurecr.io/helm/v1/repo

$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "azure-marketplace" chart repository
...Successfully got an update from the "bitnami" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈
helm/helm

Answer questions technosophos

Note that if anyone attempts to change this behavior, you will need to solve the case where a chart in Repo A references a chart in Repo B, and Repo A gets locally updated but Repo B does not.

useful!

Related questions

Error: open .helm\repository\cache\local-index.yaml hot 2
Helm upgrade fails the release after adding a new resource hot 2
Error: validation: chart.metadata is required when using --repo - helm hot 2
Error: could not find a ready tiller pod hot 2
Upgrading releases with immutable resources (e.g. persitentVolume) hot 2
"Error: Transport is closing" message when attempting to install hot 1
helm 3: Not able to push chart to docker hub hot 1
Helm3: No 'init', doesn't use existing ~/.helm hot 1
No kind Job is registered for version batch/v1 hot 1
error calling eq: invalid type for comparison hot 1
upgrade apiVersion in k8s from 1.14 to 1.16 FAILED hot 1
Helm v 2.9.1 Error: Can't get a valid version for repositories even when the chart is available - helm hot 1
Upgrades fails with: grpc: received message larger than max hot 1
Helm init fails on Kubernetes 1.16.0 hot 1
Helm error with forwarding ports hot 1
Github User Rank List