<p>Why do I get this error while running the helm upgrade command? I see my Ingress controller running fine </p>

<pre><code>Error: UPGRADE FAILED: error validating "": error validating data: [ValidationError(Ingress.metadata): unknown field "kubernetes.io/ingress.class" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta, ValidationError(Ingress.metadata): unknown field "nginx.ingress.kubernetes.io/enable-cors" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta]
</code></pre>

<p>Below is my helm version</p>

<pre><code>version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}
</code></pre>

<p>I do not get and server and client separately for helm version? Not sure if its because due to the latest helm version installed.</p>

<p>Any suggestion for my helm error?</p>

<p>you are missing the <code>annotation</code> scope:</p>

<pre><code>metadata:
  annotations:
    kubernetes.io/ingress.class: &lt;whatever&gt;
</code></pre>

<p>to debug such issues in the future, you can use <code>kubectl explain</code> which provides you with the optional fields:
try</p>

<pre><code>kubectl explain ingress.metadata
</code></pre>
