title: kubernetes ingress-nginx: IngressClass with name nginx is not valid for ingress-nginx
body: <p>I created the following ingressClass while my ingress-nginx controller was already running:</p>
  <pre><code>apiVersion: networking.k8s.io/v1beta1
  kind: IngressClass
  metadata:
    name: nginx
    annotations:
      ingressclass.kubernetes.io/is-default-class: &quot;true&quot;
  spec:
    controller: example.com/ingress-nginx-controller
  </code></pre>
  <p>And all works well, newly created ingresses get assigned the &quot;nginx&quot; ingress class automatically and my ingress nginx controller handles them as expected.</p>
  <p>However, upon restarting the ingress-nginx-controller pod, I receive the following error in its logs &amp; it keeps:</p>
  <pre><code>I1206 05:23:22.968400       8 main.go:115] &quot;Enabling new Ingress features available since Kubernetes v1.18&quot;
  E1206 05:23:22.971801       8 main.go:134] Invalid IngressClass (Spec.Controller) value &quot;quivr.be/ingress-nginx-controller&quot;. Should be &quot;k8s.io/ingress-nginx&quot;
  F1206 05:23:22.971832       8 main.go:135] IngressClass with name nginx is not valid for ingress-nginx (invalid Spec.Controller)
  </code></pre>