You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed a cert-manager chart. The chart comes with several CRDs. Then, I deleted the chart but the CRDs were not cleaned up. Subsequent attempts to install cert-manager chart are now failing because of the lingering CRDs.
As a short term fix you can use kubectl to delete the CRDs. For example, you can list CRDs with the command kubectl get crds and you can delete one with kubectl delete crd [NAME].
I'm going to dig into this a little more. We either need to better document this or fix a bug.
I think this is closely related to this issue: #4697
The limitations (and caveats) of using the crd-install hook is pretty well described in the initial PR #3982, but I think the documentation could be improved.
Thanks, @mattfarina, this is what I am doing at the moment. Although it complicates automation code.
Also, I feel the following issue is somewhat related. An attempt to add a custom cert-manager's resource ClusterIssuer gives:
Error: unable to decode "": no kind "ClusterIssuer" is registered for version "certmanager.k8s.io/v1alpha1"
with the culprit being cert-manager/templates/custom-crd.yaml:
apiVersion: certmanager.k8s.io/v1alpha1kind: ClusterIssuermetadata:
name: acme-issuerannotations:
"helm.sh/hook": "post-install,post-upgrade""helm.sh/hook-delete-policy": "hook-succeeded"spec:
acme:
# The ACME server URLserver: "server"# Email address used for ACME registrationemail: "email"# Name of a secret used to store the ACME account private keyprivateKeySecretRef:
name: acme-issuer# Enable the HTTP-01 challenge providerhttp01: {}
Activity
mattfarina commentedon Oct 29, 2018
As a short term fix you can use
kubectlto delete the CRDs. For example, you can list CRDs with the commandkubectl get crdsand you can delete one withkubectl delete crd [NAME].I'm going to dig into this a little more. We either need to better document this or fix a bug.
mortent commentedon Oct 29, 2018
I think this is closely related to this issue: #4697
The limitations (and caveats) of using the crd-install hook is pretty well described in the initial PR #3982, but I think the documentation could be improved.
gintautassulskus commentedon Oct 30, 2018
Thanks, @mattfarina, this is what I am doing at the moment. Although it complicates automation code.
Also, I feel the following issue is somewhat related. An attempt to add a custom cert-manager's resource
ClusterIssuergives:with the culprit being
cert-manager/templates/custom-crd.yaml:Steps to reproduce:
bacongobbler commentedon Dec 9, 2019
I'm going to close this ticket due to inactivity, but please re-open if this still needs to be addressed. Thanks!