Is it possible to update apiVersion in Chart.yaml dynamically depending on helm client while installing the helm chart?

4/24/2020

Sample Chart.yaml:

apiVersion: v1
description: xyz
name: xyz
...

So if we are installing the chart using helm client v3.x, then apiVersion should be set to v2. Otherwise, set apiVersion to v1.

-- Mayank Sachan
kubernetes-helm

0 Answers