Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certmanager.installCRDs=true breaks installation #145

Open
AntonAleksandrov13 opened this issue May 16, 2024 · 1 comment
Open

certmanager.installCRDs=true breaks installation #145

AntonAleksandrov13 opened this issue May 16, 2024 · 1 comment

Comments

@AntonAleksandrov13
Copy link

AntonAleksandrov13 commented May 16, 2024

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.

@arttor
Copy link
Owner

arttor commented May 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants