Can you tell whether a chart is using Helm 2 or 3 from the chart itself?

5/21/2020

I was wondering if there is anyway to programmatically tell whether a given chart is using Helm 2 or Helm 3?

I know that apiVersion in Chart.yaml has been bumped to v2. But is it definite that apiVersion: V2 correspond to Helm 3?

-- Ron Zhang
kubernetes
kubernetes-helm

1 Answer

5/21/2020

According to documentation

The apiVersion field should be v2 for Helm charts that require at least Helm 3. Charts supporting previous Helm versions have an apiVersion set to v1 and are still installable by Helm 3.

To check a chart version from command line, run

helm show chart  .
-- hoque
Source: StackOverflow