Skip to content

CRDs create conflicts when the cert-manager is replaced #408

@Sleepful

Description

@Sleepful

What happened?

The issue looks like this:

cert-manager/cert-manager#3483

and it is necessary to remove all the old CRDs so that Pulumi does not conflict upon installing the cert-manager.

To solve the conflict it becomes necessary to first delete all the CRDs manually.

Example

cert-manager/cert-manager#3483

(these are the error messages during pulumi up)


  pulumi:pulumi:Stack (JoseV/doks/do-prod)
    isprod
    error: update failed
    error: kubernetes-cert-manager:index:CertManager resource 'cert-manager' has a problem: grpc: the client connection is closing


  kubernetes-cert-manager:index:CertManager$kubernetes:helm.sh/v3:Release (cert-manager-helm)
    error: Unable to continue with install: CustomResourceDefinition "certificaterequests.cert-manager.io" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "cert-manager-helm-19cd9255": current value is "cert-manager-helm-39ddf332"

Output of pulumi about

Dependencies:
NAME                              VERSION
@pulumi/digitalocean              4.41.0
@pulumi/docker                    4.6.2
@pulumi/kubernetes-ingress-nginx  0.1.3
@pulumi/kubernetes                4.22.1
@pulumi/pulumi                    3.160.0
@pulumi/kubernetes-cert-manager   0.2.0
@types/node                       18.19.86
ts-node                           10.9.2
typescript                        5.8.2

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

Labels

kind/bugSome behavior is incorrect or out of spec

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions