Skip to content

Create cert manager resources only when needed

If we use the value cert-manager.install=false then we don't install cert manager as a dependency. However, inside the chart templates, crds from cert manager is still being created.

This causes the following error when trying to install this chart

Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "gitlab-serving-cert" namespace: "gitlab" from "": no matches for kind "Certificate" in version "cert-manager.io/v1"
ensure CRDs are installed first, resource mapping not found for name: "gitlab-selfsigned-issuer" namespace: "gitlab" from "": no matches for kind "Issuer" in version "cert-manager.io/v1"
ensure CRDs are installed first]

Adding the conditionals to not create cert manager resources if cert manager install is set to false will relieve this error.

Merge request reports