helmify icon indicating copy to clipboard operation
helmify copied to clipboard

certmanager.installCRDs=true breaks installation

Open AntonAleksandrov13 opened this issue 1 year ago • 1 comments

Hi, I have been working on creating a Helm Chart for an internal operator. It requires cert-manager for installation. I have used -cert-manager-as-subchart to generate cert-manager dependency. Once I have tried installing the chart, I got an error:

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

It seems that it's a frequent issue across many operators(GitLab operator example) due to missing cert-manager CRDs. One of the solutions is to install CRDs prior to the chart installation and setting --set cert-manager.installCRD to false.

I see that the value for cert-manager.installCRD is hardcoded to true here. I would like to contribute to the project and create another flag to change value of this field.

Let me know what do you think.

AntonAleksandrov13 avatar May 16 '24 09:05 AntonAleksandrov13

yes, it totally makes sense to add CLI option to set default value. Just make sure that default value remain the same.

arttor avatar May 17 '24 08:05 arttor