How to find the chart version of subcharts from a released helm chart?

3/18/2020

I have installed a helm chart with subcharts and I want to find out which version of the subchart is installed. Is there any possible way in helm 3?

-- Darshil Shah
kubernetes
kubernetes-helm

1 Answer

3/19/2020

Following official Helm documentation:

You can get the version of a subchart used by a chart by following below example:

  • Download the chart with $ helm pull repo/name --untar
  • Go inside the chart directory
  • Invoke command: $ helm dependency list

You can get a message that there are no dependencies:

WARNING: no dependencies at gce-ingress/charts

You can also get a message with dependencies and their versions:

NAME                VERSION REPOSITORY                                        STATUS
kube-state-metrics  2.7.*  https://kubernetes-charts.storage.googleapis.com/  unpacked

Additionally you can check the content of the prometheus/charts/kube-state-metrics/Chart.yaml for additional information.

Please let me know if that helped you.

-- Dawid Kruk
Source: StackOverflow