<p>I removing other versions from cert-manager. After that i install the new version with helm  using.</p>
<p>Installation works fine.</p>
<p>but when i use the command:</p>
<pre><code>$ kubectl get orders,challenges,clusterissuers

Error from server: request to convert CR from an invalid group/version: acme.cert-manager.io/v1alpha2
Error from server: request to convert CR from an invalid group/version: acme.cert-manager.io/v1alpha2
Error from server: request to convert CR from an invalid group/version: cert-manager.io/v1alpha2

</code></pre>
<p>The CRDs:</p>
<pre><code>Name:         orders.acme.cert-manager.io
Namespace:    
Labels:       app=cert-manager
              app.kubernetes.io/instance=cert-manager
              app.kubernetes.io/managed-by=Helm
              app.kubernetes.io/name=cert-manager
              app.kubernetes.io/version=v1.8.2
              helm.sh/chart=cert-manager-v1.8.2
Annotations:  cert-manager.io/inject-ca-from-secret: cert-manager/cert-manager-webhook-ca
              meta.helm.sh/release-name: cert-manager
              meta.helm.sh/release-namespace: cert-manager
API Version:  apiextensions.k8s.io/v1
Kind:         CustomResourceDefinition
....

    Last Transition Time:  2022-06-24T15:25:23Z
    Message:               no conflicts found
    Reason:                NoConflicts
    Status:                True
    Type:                  NamesAccepted
    Last Transition Time:  2022-06-24T15:25:23Z
    Message:               the initial names have been accepted
    Reason:                InitialNamesAccepted
    Status:                True
    Type:                  Established
  Stored Versions:
    v1

</code></pre>
<p>i dont found the CR where still using cert-manager.io/v1alpha2 and acme.cert-manager.io/v1alpha2</p>

Lucas Borges
<p>First of all, suggest to backup all your objects (certs, orders, issuer, clusterissuer, etc. with <a href="https://velero.io/" rel="nofollow noreferrer">velero</a> for example) !</p>
<p><a href="https://cert-manager.io/docs/installation/upgrading/remove-deprecated-apis/" rel="nofollow noreferrer">Cert-manger documentation</a> suggests using the cert-manager cli as:</p>
<pre><code>cmctl upgrade migrate-api-version
</code></pre>
<p>You may need <code>--skip-stored-version-check</code> if you already tried to fix CRD api manually (<a href="https://github.com/cert-manager/cert-manager/issues/3944#issuecomment-848742996" rel="nofollow noreferrer">like described in this issue</a>):</p>
<pre><code>cmctl upgrade migrate-api-version --skip-stored-version-check
</code></pre>
<p>Finally, if it's failing with the same message, <a href="https://cert-manager.io/docs/installation/helm/" rel="nofollow noreferrer">install</a> the 1.6.3 (if CRD is manually installed, upgrade CRD with 1.6.3) and repeat the command <code>cmctl upgrade migrate-api-version</code>.</p>
<p>At last, you can upgrade minor version one by one (1.7, 1.8, etc.) <a href="https://cert-manager.io/docs/installation/upgrading/" rel="nofollow noreferrer">as recommended</a></p>
