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

Option to install the OriginIssuer CRD automatically with the Helm chart #78

Open
itay-grudev opened this issue Dec 21, 2022 · 14 comments

Comments

@itay-grudev
Copy link

Can we add an option to install the OriginIssuer CRD automatically with the Helm chart?

It can be done with a custom option like cert-manager's installCRDs option? It could be false by default for backwards compatibility (like cert-manager).

It would just require one manual step less and would allow to install this as a subchart. (See #77).

Are PRs accepted for this change?

@itay-grudev
Copy link
Author

@terinjokes

@terinjokes
Copy link
Contributor

It is recommended by Helm documentation to not install CRDs as part of a chart.

@itay-grudev
Copy link
Author

Since when? It has special support for CRDs.

https://helm.sh/docs/chart_best_practices/custom_resource_definitions/

@itay-grudev
Copy link
Author

This would allow initializing our entire cluster automatically with a single helm chart and a bunch of subcharts as dependencies. I would really like to build that, but there are a few blockers and I am submitting PRs on my holiday to achieve my dream.

@itay-grudev
Copy link
Author

itay-grudev commented Dec 21, 2022

It also creates a really clean GitOps management where everything is in Helm charts only without additional manual interaction.

@itay-grudev
Copy link
Author

I think this also answers your question in #77, but I'll copy it over for posterity.

@terinjokes
Copy link
Contributor

There is no support at this time for upgrading or deleting CRDs using Helm.

@itay-grudev
Copy link
Author

It doesn't hurt installing them though. Saves an extra step on initial setup and doesn't do anything about upgrading as expected.

@itay-grudev
Copy link
Author

itay-grudev commented Dec 22, 2022

Just to reinforce my point here: cert-manager works like that via the --set installCRDs=true flag.

@terinjokes
Copy link
Contributor

Reopening this to investigate the Helm 3 behavior.

@terinjokes terinjokes reopened this Aug 2, 2023
@sebanzer
Copy link

sebanzer commented Aug 3, 2023

https://helm.sh/docs/chart_best_practices/custom_resource_definitions/

helm docs state let helm do it or create a separate chart including only the CRD's

helm automatically install's crds provided in the crds directory of a chart but those are then not templated and always installed unless --skip-crds is provided.

one can also add the CRD's to the templates directory and do a if and check for global.crds.create, like you do on global.rbac.create which you can default to false.

@terinjokes
Copy link
Contributor

@sebanzer the previous discussion was about a previous version of the docs, I reopened it in light of the new recommendations.

@stucki-stuck
Copy link

any updates ?

@terinjokes
Copy link
Contributor

Still waiting for a conclusion in cert-manager/cert-manager#6179

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

4 participants