<p>I am a Kubernetes novice. I am trying to install a csi driver to a Kubernetes Namespace in a kubernetes cluster version 1.16.15.</p>
<p>I am using helm 2.16 version to do the install using below command :</p>
<p><code>.\helm install --name csi-secrets-store secrets-store-csi-driver/secrets-store-csi-driver --namespace csi --debug</code></p>
<pre><code>[debug] Created tunnel using local port: '63250'

[debug] SERVER: &quot;127.0.0.1:63250&quot;

[debug] Original chart version: &quot;&quot;
[debug] Fetched secrets-store-csi-driver/secrets-store-csi-driver to C:\Users\XXX\.helm\cache\archive\secrets-store-csi-driver-0.0.19.tgz

[debug] CHART PATH: C:\Users\XXX\.helm\cache\archive\secrets-store-csi-driver-0.0.19.tgz

**Error: render error in &quot;secrets-store-csi-driver/templates/csidriver.yaml&quot;: template: secrets-store-csi-driver/templates/_helpers.tpl:40:45: executing &quot;csidriver.apiVersion&quot; at &lt;.Capabilities.KubeVersion.Version&gt;: can't evaluate field Version in type *version.Info**

</code></pre>
<p>csidriver.yaml :</p>
<pre class="lang-yaml prettyprint-override"><code>    apiVersion: {{ template &quot;csidriver.apiVersion&quot; . }}
    kind: CSIDriver
    metadata:
      name: secrets-store.csi.k8s.io
    spec:
      podInfoOnMount: true
      attachRequired: false
    {{- if semverCompare &quot;&gt;=1.16-0&quot; .Capabilities.KubeVersion.Version }}
      # Added in Kubernetes 1.16 with default mode of Persistent. Secrets store csi driver needs Ephermeral to be set.
      volumeLifecycleModes: 
      - Ephemeral
    {{ end }}
</code></pre>
<p>Any help much appreciated</p>

ptilloo
<p>The issue was caused by old <code>Helm</code> version.
Problem was resolved after upgrading to the new <code>Helm v3</code>.</p>
<p>There is helpful <a href="https://helm.sh/docs/topics/v2_v3_migration/" rel="nofollow noreferrer">guide</a> on how to migrate <code>Helm v2</code> to <code>v3</code>.</p>
