<p>I have to upgrade cert-manager on GKE cluster and due to the big version gap I have to uninstall and re-install it. Basically, I am wondering how should I uninstall it and since I installed it through kustomization file I thought I will do the same with the uninstallation.
The question is: is it possible or not?</p>
<p>I also want to know if I can delete the manifests all together or there's an order? eg: delete controller before deleting the CRDs.</p>
<blockquote>
<pre><code>apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
  - crds/clusterissuers.crd.yaml
  - crds/issuers.crd.yaml
  - crds/challenges.crd.yaml
  - crds/certificaterequests.crd.yaml
  - crds/orders.crd.yaml
  - crds/certificates.crd.yaml


  - operator/cainjector
  - operator/webhook
  - operator/controller
</code></pre>
</blockquote>

Wijxex
<p>You should be able to uninstall it by running <code>kustomize build 'folder' | kubectl delete -f -</code>.</p>
<p>Kustomize will remove the resources in order, so I would remove first the operators and later the CRDs as cleanup.</p>
