-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(argo-cd): Allow chart to be deployed and only ship CRDs #2299
Conversation
When deploying a separate cluster that is going to be managed by a remote argo, CRDs are needed for it to ship anything. This PR allows CRDs to be published without anything else in the chart coming with it. It's untested, though. Going to give it a whirl and make sure it works. It feels a bit clunky to wrap every template in |
I am wondering if it's best to pull CRDs out of this chart, and to have them as a standalone chart. This chart can then reference that, and that standalone chart can be used on remote clusters that need the CRDs. However that might result in some less than ideal situations where CRDs have been installed, and then someone deploys this chart. Though there are already options to disable CRD deployments in here. So maybe that's a better route to take. 🤷 |
When I saw this PR, my first thoughts were:
I then reflected again and I would say that offering a subchart with the CRDs only would be the ideal solution but it will also increase the complexity:
Your use case is valid, Terraform offers bad support for installing CRDs (the kubernetes provider offers the resource Let's see what the other maintainers here (@mbevc1 / @pdrastil / @yu-croco / @tico24 / @jmeridth ) think about this. With my reflection about complexity this proposal here might look a bit clunky, but it is a KISS solution :D . |
I had the same thoughts doing this PR... don't worry. It's clunky AF; I am under no illusions 😂 If new templates are made, they'll need to make sure they have the A sub chart is definitely a better idea. I don't think the versioning matters all that much, helm wise. So far the versioning doesn't exist, so even starting at 0.0.1 would work. Existing deployments can just reference the sub-chart on 0.0.1. However... Regarding the double PRs, I don't see a way to avoid that, to be honest; at least not without essentially guessing the version before it's shipped. On the other hand, copy pasting everything into a "slimmed down" chart is also not ideal. I, too, would be interested in hearing from the other maintainers on what their thoughts are on the best way forward. |
As @mkilchhofer has stated, your use case is valid but maintaining it would currently be painful. I'm thinking on proposals here and other ideas. |
Do you want me to move this to an issue, rather than a PR? |
@cypher7682 As @mkilchhofer stated
I'm good with this but can we do a PR per chart please? Can you also sign your commits ( |
@cypher7682 please wait before you break out the PRs. We, the maintainers, are discussing options. Will let you know asap. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Checklist: